<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">How about LoggerContext.stop()? &nbsp;It looks as if it's designed specifically for this purpose. &nbsp;It recursively stops and detaches all appenders, amongst other things.<div><br></div><div>(You can cast the result of&nbsp;<span class="Apple-style-span" style="font-family: Monaco; font-size: 11px; ">LoggerFactory.getILoggerFactory() to a LoggerContext).</span></div><div><font class="Apple-style-span" face="Monaco" size="3"><span class="Apple-style-span" style="font-size: 11px;"><br></span></font><div><div>On 28 Sep 2010, at 21:53, Michael Schall wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Great question! &nbsp;I asked this on stackoverflow a while back with no<br>real answers...<br><br><a href="http://stackoverflow.com/questions/3678755/do-i-need-to-flush-events-when-shutting-down-using-logback">http://stackoverflow.com/questions/3678755/do-i-need-to-flush-events-when-shutting-down-using-logback</a><br><br>On Tue, Sep 28, 2010 at 3:32 PM, Chris &lt;shef31@yahoo.com&gt; wrote:<br><blockquote type="cite">I'm using file appenders. At a certain point in my app, a little before<br></blockquote><blockquote type="cite">shutdown, I have to close all loggers.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">How do I tell logback to call stop() on all appenders?<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">_______________________________________________<br></blockquote><blockquote type="cite">Logback-user mailing list<br></blockquote><blockquote type="cite">Logback-user@qos.ch<br></blockquote><blockquote type="cite">http://qos.ch/mailman/listinfo/logback-user<br></blockquote><blockquote type="cite"><br></blockquote>_______________________________________________<br>Logback-user mailing list<br>Logback-user@qos.ch<br>http://qos.ch/mailman/listinfo/logback-user<br></div></blockquote></div><br></div></body></html>