/** * Subset of the NestJS `LoggerService` interface implemented by * {@link createNestJsonLogger}. Mirrors Nest's expected logger contract so the * JSON logger can be passed directly to a Nest application. */ export interface LoggerService { log(message: any, ...optionalParams: any[]): any; error(message: any, ...optionalParams: any[]): any; warn(message: any, ...optionalParams: any[]): any; debug?(message: any, ...optionalParams: any[]): any; verbose?(message: any, ...optionalParams: any[]): any; fatal?(message: any, ...optionalParams: any[]): any; setLogLevels?(levels: any[]): any; } /** * Creates a NestJS-compatible {@link LoggerService} that emits one JSON object * per line to `process.stdout`. When the final optional parameter is a string, * it is treated as Nest's `context` argument and recorded separately; remaining * params are joined into the message, with `Error` values reduced to their * message. * * @returns A logger implementing Nest's `log`/`error`/`warn`/`debug`/`verbose`/`fatal` methods * @example * ```typescript * const app = await NestFactory.create(AppModule, { logger: createNestJsonLogger() }) * ``` */ declare function createNestJsonLogger(): LoggerService; /** * The logger type produced by {@link createNestJsonLogger}. */ type NestJsonLogger = ReturnType; export { createNestJsonLogger, type NestJsonLogger }; //# sourceMappingURL=nestLogger.d.ts.map