@pulzar/core
Version:
Next-generation Node.js framework for ultra-fast web applications with zero-reflection DI, GraphQL, WebSockets, events, and edge runtime support
17 lines • 844 B
TypeScript
import type { FastifyRequest, FastifyReply, FastifyInstance } from "fastify";
export interface LoggingOptions {
includeHeaders?: boolean;
includeBody?: boolean;
includeQuery?: boolean;
excludePaths?: string[];
}
export declare function createLoggerMiddleware(options?: LoggingOptions): {
preHandler: (request: FastifyRequest, reply: FastifyReply) => Promise<void>;
onSend: (request: FastifyRequest, reply: FastifyReply, payload: any) => Promise<any>;
};
export declare function registerLoggerPlugin(fastify: FastifyInstance, options?: LoggingOptions): void;
export declare const loggerMiddleware: {
preHandler: (request: FastifyRequest, reply: FastifyReply) => Promise<void>;
onSend: (request: FastifyRequest, reply: FastifyReply, payload: any) => Promise<any>;
};
//# sourceMappingURL=logger.middleware.d.ts.map