UNPKG

602 BTypeScriptView Raw
1/**
2 * Represents a generic logger that could be a simple console, bunyan etc.
3 */
4export interface Logger {
5 trace(message?: any, ...optionalParams: any[]): void;
6 debug(message?: any, ...optionalParams: any[]): void;
7 info(message?: any, ...optionalParams: any[]): void;
8 warn(message?: any, ...optionalParams: any[]): void;
9 error(message?: any, ...optionalParams: any[]): void;
10 [x: string]: any;
11}
12/**
13 * Dummy logger that does not do anything.
14 *
15 * Useful as a default for some library that the user might want to get logs out of.
16 */
17export declare const dummyLogger: Logger;