UNPKG

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.19 kB
import { LoggerService as LoggerService$1 } from '@nestjs/common'; import { ILogger, ILoggerOptions } from '../types/logger.types.js'; import 'pino'; import 'winston'; declare class LoggerService implements LoggerService$1, ILogger { private logger; constructor(options: ILoggerOptions); log(message: string, ...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; 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 };