diff options
Diffstat (limited to 'frontend/src/logger.ts')
| -rw-r--r-- | frontend/src/logger.ts | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/frontend/src/logger.ts b/frontend/src/logger.ts index 9eb515a3..22036362 100644 --- a/frontend/src/logger.ts +++ b/frontend/src/logger.ts @@ -8,6 +8,16 @@ export const log = (name: string, ...args: any[]) => { ); }; +export const debug = (name: string, ...args: any[]) => { + console.debug( + `%c Decky %c ${name} %c`, + 'background: #16a085; color: black;', + 'background: #1abc9c; color: black;', + 'color: blue;', + ...args, + ); +}; + export const error = (name: string, ...args: any[]) => { console.log( `%c Decky %c ${name} %c`, @@ -28,7 +38,7 @@ class Logger { } debug(...args: any[]) { - log(this.name, ...args); + debug(this.name, ...args); } } |
