@zishone/logan
Version:
A logger and log middleware. Why logan? Because it sounds like morgan
20 lines (19 loc) • 657 B
TypeScript
import winston from 'winston';
export declare class Logger {
private logger;
constructor(options?: winston.LoggerOptions);
enableInfo(): void;
enableInfoFile(options?: winston.transports.FileTransportOptions): void;
enableErrorFile(options?: winston.transports.FileTransportOptions): void;
enableDebug(): void;
info(message: string, args?: {
[key: string]: any;
}): void;
error(message: string, args?: {
[key: string]: any;
}): void;
debug(message: string, args?: {
[key: string]: any;
}): void;
debugFunctionCall(functionName: string, functionArguments: any, args?: any): void;
}