style (backend): match log colors

This commit is contained in:
naskya 2024-06-04 11:16:10 +09:00
parent fe685c36b9
commit 9c7c00482e
No known key found for this signature in database
GPG key ID: 712D413B3A9FED5C

View file

@ -101,16 +101,16 @@ export default class Logger {
const l =
level === "error"
? important
? chalk.bgRed.white("ERR ")
: chalk.red("ERR ")
? chalk.bgRed.white("ERROR")
: chalk.red("ERROR")
: level === "warning"
? chalk.yellow("WARN")
? chalk.yellow(" WARN")
: level === "info"
? chalk.cyan("INFO")
? chalk.green(" INFO")
: level === "debug"
? chalk.green("DEBUG")
? chalk.blue("DEBUG")
: level === "trace"
? chalk.gray("TRACE")
? chalk.magenta("TRACE")
: null;
const domains = [this.domain]
.concat(subDomains)