nodejs-logsage
Version:
Powerful logger module for NestJS, seamlessly integrating Pino and Winston for flexible logging with easy configuration.
17 lines (14 loc) • 462 B
TypeScript
import { ILogger, ILoggerOptions } from '../types/index.js';
import 'pino';
import 'winston';
declare class LoggerService implements ILogger {
private logger;
constructor(options?: ILoggerOptions);
info(...optionalParams: any[]): void;
warn(...optionalParams: any[]): void;
error(...optionalParams: any[]): void;
debug(...optionalParams: any[]): void;
private addRequestId;
private logWithRequestId;
}
export { LoggerService };