UNPKG

nodejs-logitron

Version:

Powerful logger module for Nodejs/ Nestjs, seamlessly integrating Pino and Winston for flexible logging with easy configuration.

31 lines (28 loc) 1.05 kB
import { ILogger, ILoggerOptions } from '../types/index.js'; import 'pino'; import 'winston'; declare class LoggerService implements ILogger { private readonly logger; constructor(options?: ILoggerOptions); info(message: string, ...optionalParams: any[]): void; warn(message: string, ...optionalParams: any[]): void; error(message: string, ...optionalParams: any[]): void; debug(message: string, ...optionalParams: any[]): void; 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; } export { LoggerService };