<html>
<head>
<base href="http://bugzilla.slf4j.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Priority</th>
<td>P5
</td>
</tr>
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Enable swapping of NOPLogger in SubstituteLoggerFactory"
href="http://bugzilla.slf4j.org/show_bug.cgi?id=311">311</a>
</td>
</tr>
<tr>
<th>Assignee</th>
<td>slf4j-dev@qos.ch
</td>
</tr>
<tr>
<th>Summary</th>
<td>Enable swapping of NOPLogger in SubstituteLoggerFactory
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Reporter</th>
<td>chetan.mehrotra@gmail.com
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Version</th>
<td>1.7.x
</td>
</tr>
<tr>
<th>Component</th>
<td>Core API
</td>
</tr>
<tr>
<th>Product</th>
<td>SLF4J
</td>
</tr></table>
<p>
<div>
<pre>Currently the SubstituteLoggerFactory returns a NOPLogger while the
LoggerFactory is getting initialzed. Due to this any Logger created during
initialization period are not useful for the lifetime of the system. This is
also explained here [1]. We are facing this issue while using Slf4j with
logback in Sling which is an OSGi applicatopn [2]
The fix suggested involves changes in the application using Slf4j. It would be
simpler if the SubstituteLoggerFactory returns some forms of
SubstitutableLogger which can delegate to a different logger impl. By default
it uses NOPlogger. But later the delegate can be set to actual logger.
[1] <a href="http://www.slf4j.org/codes.html#substituteLogger">http://www.slf4j.org/codes.html#substituteLogger</a>
[2] <a href="https://issues.apache.org/jira/browse/SLING-3340">https://issues.apache.org/jira/browse/SLING-3340</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>