| 88 | } |
| 89 | |
| 90 | export declare class LogController { |
| 91 | disableRequestLogging: boolean | ((req: FastifyRequest) => boolean) |
| 92 | requestIdLogLabel: string |
| 93 | |
| 94 | constructor (options?: LogControllerOptions) |
| 95 | |
| 96 | isLogDisabled (request: FastifyRequest): boolean |
| 97 | incomingRequest (request: FastifyRequest, reply: FastifyReply, metadata?: Record<string, unknown>): void |
| 98 | requestCompleted (error: Error | null, request: FastifyRequest, reply: FastifyReply, metadata?: Record<string, unknown>): void |
| 99 | defaultErrorLog (error: Error, request: FastifyRequest, reply: FastifyReply, metadata?: Record<string, unknown>): void |
| 100 | streamError (error: Error, request: FastifyRequest, reply: FastifyReply, metadata?: Record<string, unknown>): void |
| 101 | routeNotFound (request: FastifyRequest, reply: FastifyReply, metadata?: Record<string, unknown>): void |
| 102 | writeHeadError (error: Error, request: FastifyRequest, reply: FastifyReply, metadata?: Record<string, unknown>): void |
| 103 | serializerError (error: Error, request: FastifyRequest, reply: FastifyReply, metadata: { statusCode: number }): void |
| 104 | serviceUnavailable (logger: FastifyBaseLogger, server: FastifyInstance): void |
| 105 | } |
| 106 | |
| 107 | export interface FastifyChildLoggerFactory< |
| 108 | RawServer extends RawServerBase = RawServerDefault, |
nothing calls this directly
no outgoing calls
no test coverage detected