MCPcopy
hub / github.com/angular/angular / ConsoleLogger

Class ConsoleLogger

packages/compiler-cli/src/ngtsc/logging/src/console_logger.ts:25–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23 * constructor parameter.
24 */
25export class ConsoleLogger implements Logger {
26 constructor(public level: LogLevel) {}
27 debug(...args: string[]) {
28 if (this.level <= LogLevel.debug) console.debug(DEBUG, ...args);
29 }
30 info(...args: string[]) {
31 if (this.level <= LogLevel.info) console.info(...args);
32 }
33 warn(...args: string[]) {
34 if (this.level <= LogLevel.warn) console.warn(WARN, ...args);
35 }
36 error(...args: string[]) {
37 if (this.level <= LogLevel.error) console.error(ERROR, ...args);
38 }
39}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…