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