1
0
Fork 0
mirror of https://github.com/actions/setup-python.git synced 2024-11-23 17:17:36 +00:00
setup-python/node_modules/bs-logger/dist/logger/level.d.ts
Danny McCormick 39c08a0eaa Initial pass
2019-06-26 21:12:00 -04:00

25 lines
848 B
TypeScript

declare const LogLevels: {
trace: number;
debug: number;
info: number;
warn: number;
error: number;
fatal: number;
readonly lower: number;
readonly higher: number;
};
declare type LogLevelName = 'trace' | 'debug' | 'info' | 'warn' | 'error' | 'fatal';
declare const LogLevelNames: LogLevelName[];
declare const LogLevelValues: number[];
interface LogLevelsScaleEntry {
range: {
from: number;
next: number;
};
name: string;
test(level: number): boolean;
}
declare const LogLevelsScale: ReadonlyArray<LogLevelsScaleEntry>;
declare const logLevelNameFor: (level?: number | undefined) => string;
declare const parseLogLevel: (level: string | number) => number | undefined;
export { logLevelNameFor, LogLevels, LogLevelNames, LogLevelValues, LogLevelsScale, parseLogLevel, LogLevelName };