andy-stack_vaultkeeper-ai/Services/DebugService.ts

15 lines
376 B
TypeScript
Raw Permalink Normal View History

import { DebugColor } from "Enums/DebugColor";
export class DebugService {
private debugColor: DebugColor = DebugColor.WHITE;
public setDebugColor(debugColor: DebugColor): void {
this.debugColor = debugColor;
}
public log(level: string, message: string): void {
console.debug(`%c${level}: ${message}`, `color:${this.debugColor};`);
}
}