You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After #12852 we'll have a new logging system, but we'll need to improve the way we handle default root logger. Everything works fine until developer wants to add additional logger/appender or just tweak default settings a bit. In this case root logger and appender it depends on should be explicitly defined in the configuration and it's not friendly at all. We should improve it.
Some ideas:
log4js has a dedicated config branch for root/default logger, maybe we can have that too.
From @kjbekkelund:
Been playing around with this and I think we need to improve the UX. Let's say you're relying on the logging defaults and to debug something you just want to up the log level on your plugin. What feels right to me is being able to just:
logging:
loggers:
myPlugin:
level: debug
Now that fails with "root" logger should be configured!.
Another use case could be wanting to log everything from a plugin to a file while debugging, e.g. something like:
Here we could also just use the defaults for the rest.
Maybe instead of applying the defaults like we do now, we add the default logger and appender automatically, unless you override them. What do you think?
The text was updated successfully, but these errors were encountered:
After #12852 we'll have a new logging system, but we'll need to improve the way we handle default
root
logger. Everything works fine until developer wants to add additional logger/appender or just tweak default settings a bit. In this caseroot
logger and appender it depends on should be explicitly defined in the configuration and it's not friendly at all. We should improve it.Some ideas:
log4js
has a dedicated config branch forroot/default
logger, maybe we can have that too.From @kjbekkelund:
The text was updated successfully, but these errors were encountered: