deno_std
deno_std copied to clipboard
LogLevel redundant setup
Is your feature request related to a problem? Please describe.
LogLevel
setup seems confusing to me. I need to use "DEBUG" keyword two times in order to lower default level. It should be place only one time.
log.setup({
handlers: {
default: new log.ConsoleHandler("DEBUG"),
},
loggers: {
default: {
level: "DEBUG",
handlers: ['default'],
},
},
})
// === OR ===
this.logger = new log.Logger(
'name',
"DEBUG",
{
handlers: [
new log.ConsoleHandler("DEBUG"),
],
},
)
Whats the purpose of requiring handler LogLevel too? Am I missing something?
Describe the solution you'd like
Remove LogLevel
on handlers
Describe alternatives you've considered