1 | import { Factory, UnknownFactoryLevels } from './MethodFactory';
|
2 | import { PrefixFactoryOptions } from './PrefixFactory';
|
3 | declare type SomeLevel = number | string;
|
4 | export interface LogLevelIndex {
|
5 | [key: string]: any;
|
6 | }
|
7 | export interface LogLevelOptions {
|
8 | factory?: Factory;
|
9 | id?: string;
|
10 | level?: number | string;
|
11 | name?: string;
|
12 | prefix?: PrefixFactoryOptions;
|
13 | }
|
14 | export declare class LogLevel implements LogLevelIndex {
|
15 | [key: string]: any;
|
16 | name: string;
|
17 | type: string;
|
18 | private currentLevel;
|
19 | private methodFactory;
|
20 | private options;
|
21 | constructor(options: LogLevelOptions);
|
22 | get factory(): Factory;
|
23 | set factory(factory: Factory);
|
24 | disable(): void;
|
25 | enable(): void;
|
26 | get level(): number;
|
27 | set level(logLevel: SomeLevel);
|
28 | get levels(): UnknownFactoryLevels;
|
29 | }
|
30 | export {};
|