| 12345678910111213141516171819 |
- import type { FastifyRequest } from 'fastify';
- import type { OperationLogOptions } from '../decorators/operation-log.decorator';
- import type { ApiResponse } from './api-response.interface';
- /**
- * Abstract interface for operation logging
- * Implementations should be provided at the app level
- */
- export interface IOperationLogger {
- createLog(
- req: FastifyRequest,
- options: OperationLogOptions,
- data: ApiResponse<unknown>,
- callMethod: string,
- status: boolean,
- ): Promise<void>;
- }
- export const OPERATION_LOGGER = Symbol('OPERATION_LOGGER');
|