| 23 | * constructor parameter. |
| 24 | */ |
| 25 | export 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…