Hi Team,

 

We have been migrating from Log4j 1 to Logback and we have few custom appenders like below:

public class CustomAppender extends AppenderBase<ILoggingEvent> implements Runnable {}

 

Those attach to ch.qos.logback.classic.Logger using addAppender method when application starts.

 

All these programmatically created appenders are removed when the Logback configuration file (logback.xml) changed/reloaded. How can we re attach those appenders back to Logger without application restart? 

 

Thanks,

Thaya