Skip to content

Commit

Permalink
fix all log levels being debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Puyodead1 authored Sep 5, 2023
1 parent dc3fb2e commit 2f30c9b
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} | INFO |`, `color: DodgerBlue`, ...args);
console.info(`%c${new Date().toLocaleTimeString()} | ${this.name} | INFO |`, `color: DodgerBlue`, ...args);
}

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

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

0 comments on commit 2f30c9b

Please sign in to comment.