Attach custom Logback appenders after configuration reload

16 Mar
2022
16 Mar
'22
7:52 a.m.
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
1297
Age (days ago)
1297
Last active (days ago)
0 comments
1 participants
participants (1)
-
Thaya Nathan