Skip to content

Commit

Permalink
fix logger text saying the wrong level
Browse files Browse the repository at this point in the history
  • Loading branch information
Puyodead1 committed Aug 14, 2023
1 parent 02e215c commit 7de4756
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/utils/Logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ export default class Logger {
}

info(...args: any[]) {
console.debug(`%c${new Date().toLocaleTimeString()} | ${this.name} | DEBUG |`, `color: DodgerBlue`, ...args);
console.debug(`%c${new Date().toLocaleTimeString()} | ${this.name} | INFO |`, `color: DodgerBlue`, ...args);
}

warn(...args: any[]) {
console.debug(`%c${new Date().toLocaleTimeString()} | ${this.name} | DEBUG |`, `color: Tomato`, ...args);
console.debug(`%c${new Date().toLocaleTimeString()} | ${this.name} | WARN |`, `color: Tomato`, ...args);
}

error(...args: any[]) {
console.debug(`%c${new Date().toLocaleTimeString()} | ${this.name} | DEBUG |`, `color: Red`, ...args);
console.debug(`%c${new Date().toLocaleTimeString()} | ${this.name} | ERROR |`, `color: Red`, ...args);
}
}

0 comments on commit 7de4756

Please sign in to comment.