UNPKG

1.06 kBTypeScriptView Raw
1/**
2 * @license
3 * Copyright Google LLC All Rights Reserved.
4 *
5 * Use of this source code is governed by an MIT-style license that can be
6 * found in the LICENSE file at https://angular.dev/license
7 */
8import { JsonObject } from '../json/utils';
9import { LogLevel, Logger } from './logger';
10export declare class LevelTransformLogger extends Logger {
11 readonly name: string;
12 readonly parent: Logger | null;
13 readonly levelTransform: (level: LogLevel) => LogLevel;
14 constructor(name: string, parent: (Logger | null) | undefined, levelTransform: (level: LogLevel) => LogLevel);
15 log(level: LogLevel, message: string, metadata?: JsonObject): void;
16 createChild(name: string): Logger;
17}
18export declare class LevelCapLogger extends LevelTransformLogger {
19 readonly name: string;
20 readonly parent: Logger | null;
21 readonly levelCap: LogLevel;
22 static levelMap: {
23 [cap: string]: {
24 [level: string]: string;
25 };
26 };
27 constructor(name: string, parent: (Logger | null) | undefined, levelCap: LogLevel);
28}