FastifyLoggerOptions Type — fastify Architecture
Architecture documentation for the FastifyLoggerOptions type/interface in logger.d.ts from the fastify codebase.
Entity Profile
Dependency Diagram
graph TD 855d472d_4e33_04e2_b261_9d96f3094551["FastifyLoggerOptions"] 63cea41b_c3bc_1b9f_5f21_469181ed65ec["logger.d.ts"] 855d472d_4e33_04e2_b261_9d96f3094551 -->|defined in| 63cea41b_c3bc_1b9f_5f21_469181ed65ec style 855d472d_4e33_04e2_b261_9d96f3094551 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
types/logger.d.ts lines 53–83
export interface FastifyLoggerOptions<
RawServer extends RawServerBase = RawServerDefault,
RawRequest extends FastifyRequest<RouteGenericInterface, RawServer, RawRequestDefaultExpression<RawServer>, FastifySchema, FastifyTypeProvider> = FastifyRequest<RouteGenericInterface, RawServer, RawRequestDefaultExpression<RawServer>, FastifySchema, FastifyTypeProviderDefault>,
RawReply extends FastifyReply<RouteGenericInterface, RawServer, RawRequestDefaultExpression<RawServer>, RawReplyDefaultExpression<RawServer>, ContextConfigDefault, FastifySchema, FastifyTypeProvider> = FastifyReply<RouteGenericInterface, RawServer, RawRequestDefaultExpression<RawServer>, RawReplyDefaultExpression<RawServer>, ContextConfigDefault, FastifySchema, FastifyTypeProviderDefault>
> {
serializers?: {
req?: (req: RawRequest) => {
method?: string;
url?: string;
version?: string;
host?: string;
remoteAddress?: string;
remotePort?: number;
[key: string]: unknown;
};
err?: (err: FastifyError) => {
type: string;
message: string;
stack: string;
[key: string]: unknown;
};
res?: (res: ResSerializerReply<RawServer, RawReply>) => {
statusCode?: string | number;
[key: string]: unknown;
};
};
level?: string;
file?: string;
genReqId?: (req: RawRequest) => string;
stream?: FastifyLoggerStreamDestination;
}
Defined In
Source
Frequently Asked Questions
What is the FastifyLoggerOptions type?
FastifyLoggerOptions is a type/interface in the fastify codebase, defined in types/logger.d.ts.
Where is FastifyLoggerOptions defined?
FastifyLoggerOptions is defined in types/logger.d.ts at line 53.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free