MCPcopy Create free account
hub / github.com/fastify/fastify / LogController

Class LogController

types/logger.d.ts:90–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90export 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
107export interface FastifyChildLoggerFactory<
108 RawServer extends RawServerBase = RawServerDefault,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected