<html>
<head>
<base href="http://bugzilla.slf4j.org/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:chetan.mehrotra@gmail.com" title="Chetan Mehrotra <chetan.mehrotra@gmail.com>"> <span class="fn">Chetan Mehrotra</span></a>
</span> changed
<a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED --- - Need ability to shutdown loggers and flush appenders"
href="http://bugzilla.slf4j.org/show_bug.cgi?id=201">bug 201</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>chetan.mehrotra@gmail.com
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED --- - Need ability to shutdown loggers and flush appenders"
href="http://bugzilla.slf4j.org/show_bug.cgi?id=201#c13">Comment # 13</a>
on <a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED --- - Need ability to shutdown loggers and flush appenders"
href="http://bugzilla.slf4j.org/show_bug.cgi?id=201">bug 201</a>
from <span class="vcard"><a class="email" href="mailto:chetan.mehrotra@gmail.com" title="Chetan Mehrotra <chetan.mehrotra@gmail.com>"> <span class="fn">Chetan Mehrotra</span></a>
</span></b>
<pre>Another option can be that if the ILoggerFactory implementation also implements
the Closeable interface [1]. Then client code need not depend on specific API
but can be generic
import org.slf4j.LoggerFactory;
if(LoggerFactory.getILoggerFactory() implements Closeable){
((Closeable)LoggerFactory.getILoggerFactory()).close();
}
Thus if any of the bindings require cleanup then there respetive factories
implement the Closeable interface e.g. Logback
[1] <a href="http://docs.oracle.com/javase/7/docs/api/java/io/Closeable.html">http://docs.oracle.com/javase/7/docs/api/java/io/Closeable.html</a></pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>