UNPKG

844 BTypeScriptView 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 { Logger, LogLevel } from './logger';
9export declare const DEBUG = "\u001B[36mDebug:\u001B[0m";
10export declare const WARN = "\u001B[33mWarning:\u001B[0m";
11export declare const ERROR = "\u001B[31mError:\u001B[0m";
12/**
13 * A simple logger that outputs directly to the Console.
14 *
15 * The log messages can be filtered based on severity via the `logLevel`
16 * constructor parameter.
17 */
18export declare class ConsoleLogger implements Logger {
19 level: LogLevel;
20 constructor(level: LogLevel);
21 debug(...args: string[]): void;
22 info(...args: string[]): void;
23 warn(...args: string[]): void;
24 error(...args: string[]): void;
25}