@arpinum/log
Version:
Simple module to log on stdout or stderr
17 lines (16 loc) • 422 B
TypeScript
import { Console, ConsoleOut } from "./console";
export type LogFunc = (console: Console) => ConsoleOut;
export type Levels = Record<Level, LevelConfiguration>;
export declare enum Level {
all = "all",
debug = "debug",
info = "info",
warn = "warn",
error = "error",
off = "off"
}
export interface LevelConfiguration {
priority: number;
log?: LogFunc;
}
export declare const levels: Levels;