Installation
npm install --save @types/console-log-level
Summary
This package contains type definitions for console-log-level (https://github.com/watson/console-log-level).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/console-log-level.
type PrefixFunction = (level: string) => string;
declare namespace consoleLogLevel {
type LogLevelNames =
"trace" | "debug" | "info" | "warn" | "error" | "fatal";
type Logger = Record<LogLevelNames, (...args: any[]) => void>;
}
interface Options {
level?: consoleLogLevel.LogLevelNames | undefined;
prefix?: string | PrefixFunction | undefined;
stderr?: boolean | undefined;
}
declare function consoleLogLevel(opts?: Options): consoleLogLevel.Logger;
export = consoleLogLevel;
Additional Details
- Last updated: Tue, 06 Jul 2021 20:32:28 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by Ali Ijaz Sheikh.