On 31.05.2012 13:07, ceki wrote:

You could separate appender configuration and logger level configuration
into separate files [1]. The main file would define appenders and would
include the logger level file which you could maintain programmatically
(just dump the logger level settings to the logger level config file
upon change).

When the user makes a level change using the UI you provide, make the level change programmatically and then dump the current logger state into the config file reserved for setting logger levels. The other instances will pickup the change in the included config file (reserved for setting logger levels).

Dumping the current state should be as easy as iterating over all the loggers and then writing XML elements such as

 <logger name="a" level="INFO"/>

I'd be happy to help if you wish to go along this route.

--
Ceki
http://twitter.com/#!/ceki
_______________________________________________
Logback-user mailing list
[email protected]
http://mailman.qos.ch/mailman/listinfo/logback-user

Reply via email to