tycho-solver
Version:
Evolutionary computation and optimization library
15 lines • 573 B
TypeScript
export type LogLevel = 'debug' | 'info' | 'warn' | 'error' | 'silent';
export declare class Logger {
private levelOrder;
private level;
private sink;
constructor(level?: LogLevel, sink?: (level: LogLevel, msg: string, ...args: any[]) => void);
setLevel(l: LogLevel): void;
private shouldLog;
debug(msg: string, ...args: any[]): void;
info(msg: string, ...args: any[]): void;
warn(msg: string, ...args: any[]): void;
error(msg: string, ...args: any[]): void;
}
export declare const logger: Logger;
//# sourceMappingURL=logger.d.ts.map