1 | import { LogLevel } from './LogLevel';
|
2 | /**
|
3 | * Helper class to convert log level values.
|
4 | *
|
5 | * @see [[LogLevel]]
|
6 | */
|
7 | export declare class LogLevelConverter {
|
8 | /**
|
9 | * Converts numbers and strings to standard log level values.
|
10 | *
|
11 | * @param value a value to be converted
|
12 | * @param defaultValue a default value if conversion is not possible
|
13 | * @returns converted log level
|
14 | */
|
15 | static toLogLevel(value: any, defaultValue?: LogLevel): LogLevel;
|
16 | /**
|
17 | * Converts log level to a string.
|
18 | *
|
19 | * @param level a log level to convert
|
20 | * @returns log level name string.
|
21 | *
|
22 | * @see [[LogLevel]]
|
23 | */
|
24 | static toString(level: LogLevel): string;
|
25 | /**
|
26 | * Converts log level to a number.
|
27 | *
|
28 | * @param level a log level to convert.
|
29 | * @returns log level number value.
|
30 | */
|
31 | static toInteger(level: LogLevel): number;
|
32 | }
|