flatiron/winston — Issue #78: change log levels at runtime from outside w/ watchdog
Author: hgoebl
Created: 2011-12-15 07:30:22+00:00
State: open

I didn't find a feature which is very handy in most of the logging frameworks in Java.
For example in Log4J, there is a config file (plain text or xml).
In this file you can specify the log-level of modules.
During runtime, you can change this file and a watchdog transports those changes to the runtime config in the server.
This is very valuable for tracing even in production environments.

{
"level": {
"express": "warn",
"connect": "warn",
"mymodule.backend": "info",
"mymodule.backend.mysql": "warn",
"mymodule.backend.mongo": "debug"
},
// ...
}

More info: http://www.slf4j.org/