[logback-user] about logback configuration file

Berker Batur berkerbatur at gmail.com
Wed Sep 28 11:01:02 CEST 2011


Hi,

Thanks for the reply.

Regards,

-berker

2011/9/28 Ceki Gülcü <ceki at qos.ch>:
> Hi,
> 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.
> --
> http://twitter.com/ceki
>
> On 27/09/2011 11:37 PM, Berker Batur wrote:
>>
>> Hi,
>>
>> 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.
>>
>>
>> Thanks,
>>
>> Best Regards,
>>
>> Berker Batur
>
>
> _______________________________________________
> Logback-user mailing list
> Logback-user at qos.ch
> http://qos.ch/mailman/listinfo/logback-user
>


More information about the Logback-user mailing list