smartlog/dist/smartlog.classes.smartlog.d.ts

25 lines
687 B
TypeScript
Raw Normal View History

2018-01-28 03:31:06 +00:00
export declare type TLogLevel = "error" | "warn" | "info" | "verbose" | "debug" | "silly";
export declare class Smartlog {
private winstonInstance;
/**
* enables console logging
*/
enableConsole(): void;
/**
* set a minimum serverity level to log
* @param levelArg
*/
level(levelArg: TLogLevel): void;
/**
* log stuff
* @param logLevelArg
* @param logMessageArg
*/
log(logLevelArg: TLogLevel, logMessageArg: string): void;
silly(logMessageArg: string): void;
debug(logMessageArg: any): void;
info(logMessageArg: string): void;
warn(logMessageArg: any): void;
error(logMessageArg: any): void;
}