MCPcopy Create free account
hub / github.com/CoderLine/alphaTab / ConsoleLogger

Class ConsoleLogger

packages/alphatab/src/Logger.ts:16–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14 * @public
15 */
16export class ConsoleLogger implements ILogger {
17 public static logLevel: LogLevel = LogLevel.Info;
18
19 private static _format(category: string, msg: string): string {
20 return `[AlphaTab][${category}] ${msg}`;
21 }
22
23 public debug(category: string, msg: string, ...details: unknown[]): void {
24 console.debug(ConsoleLogger._format(category, msg), ...details);
25 }
26
27 public warning(category: string, msg: string, ...details: unknown[]): void {
28 console.warn(ConsoleLogger._format(category, msg), ...details);
29 }
30
31 public info(category: string, msg: string, ...details: unknown[]): void {
32 console.info(ConsoleLogger._format(category, msg), ...details);
33 }
34
35 public error(category: string, msg: string, ...details: unknown[]): void {
36 console.error(ConsoleLogger._format(category, msg), ...details);
37 }
38}
39
40/**
41 * @public

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected