[logback-user] about logback configuration file
ceki at qos.ch
Wed Sep 28 00:05:18 CEST 2011
There is currently no way to reflect programmatic changes into the
config file. Such a feature would be possible to implement but there are
no plans do so.
On 27/09/2011 11:37 PM, Berker Batur wrote:
> I want to save the current configuration of loggers in my application
> to the configuration file. Is there anyway or any command to do that ?
> What I want to do is that:
> - start the logback with a user defined configuration file
> - change level of some loggers, from the code, with setLevel method
> - maybe append a socket appender, again in the code
> - then, before exiting from the application tell logback to dump all
> configuration changes to the configuration file.
> If logback could immediately reflect the changes to the configuration
> file when a change occurs also works for me.
> Best Regards,
> Berker Batur
More information about the Logback-user