UNPKG

404 BTypeScriptView Raw
1export type LogLevel = 'trace' | 'debug' | 'info' | 'warn' | 'error' | 'fatal';
2export declare const LEVELS: Record<LogLevel, number>;
3export declare const log: Record<keyof typeof LEVELS, typeof console.log>;
4/**
5 * Sets a log level
6 *
7 * @param level - The level to set the logging to. Default is `"fatal"`
8 */
9export declare const setLogLevel: (level?: keyof typeof LEVELS | number | string) => void;