smartlog/dist/smartlog.classes.smartlog.d.ts
2018-01-28 04:31:06 +01:00

25 lines
687 B
TypeScript

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;
}