nestjs-logitron
Version:
Powerful logger module for Nodejs/ Nestjs, seamlessly integrating Pino and Winston for flexible logging with easy configuration.
33 lines (30 loc) • 1.13 kB
text/typescript
import { ILogger, ILoggerOptions } from '../types/logger.types.mjs';
import 'pino';
import 'winston';
declare class PinoService implements ILogger {
private readonly logger;
private readonly appName;
constructor(options: ILoggerOptions['options']);
infoWithExecutionTime(message: string, execution: {
name: string;
start: number;
}, ...optionalParams: any[]): void;
warnWithExecutionTime(message: string, execution: {
name: string;
start: number;
}, ...optionalParams: any[]): void;
errorWithExecutionTime(message: string, execution: {
name: string;
start: number;
}, ...optionalParams: any[]): void;
debugWithExecutionTime(message: string, execution: {
name: string;
start: number;
}, ...optionalParams: any[]): void;
info(message: string, ...optionalParams: any[]): void;
warn(message: string, ...optionalParams: any[]): void;
error(message: string, ...optionalParams: any[]): void;
debug(message: string, ...optionalParams: any[]): void;
private logWithExecutionTime;
}
export { PinoService };