fix: Include log level in development

This commit is contained in:
Tom Moor 2021-09-16 17:22:23 -07:00
parent f6c2a95a55
commit e6cc8f5550
1 changed files with 4 additions and 2 deletions

View File

@ -32,8 +32,10 @@ class Logger {
: winston.format.combine( : winston.format.combine(
winston.format.colorize(), winston.format.colorize(),
winston.format.printf( winston.format.printf(
({ message, label }) => ({ message, level, label }) =>
`${label ? chalk.bold("[" + label + "] ") : ""}${message}` `${level}: ${
label ? chalk.bold("[" + label + "] ") : ""
}${message}`
) )
), ),
}) })