<div dir="ltr">Hi again,<br><br>I checked out the source and build a snapshot and could not get it to work. I found out that the implementations of the getInstance methods do not match the signature of the corresponding log4j methods. The should return a Category object, not a Logger. I will comment the bugzilla report as well.<br>
<br>Regards<br>M. Hansen<br><br><div class="gmail_quote">On Tue, Aug 19, 2008 at 9:44 PM, Ceki Gulcu <span dir="ltr">&lt;listid@qos.ch&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
As similar request has been made by Michael Rumpf in bug 95.<br>
<br>
 &nbsp;<a href="http://bugzilla.slf4j.org/show_bug.cgi?id=95" target="_blank">http://bugzilla.slf4j.org/show_bug.cgi?id=95</a><br>
<br>
The getInstance() methods were added recently in SVN. You can expect these<br>
methods to be part of the next release.<br>
<br>
HTH,<br>
<div><div></div><div class="Wj3C7c"><br>
M. Hansen wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt; We have decided to use JDK1.4 logging and we have some legacy applications<br>
&gt; that uses log4j. Our idea is to use SLF4J to bridge calls to log4j to jdk1.4<br>
&gt; through SLF4J. However, we do not have the source code for some of our<br>
&gt; legacy applications and some use deprecated functionality from log4j. More<br>
&gt; precisely we have run into a problem where some code invokes<br>
&gt; Category.getInstance(java.lang.String). This method is deprecated in log4j<br>
&gt; but still part of the API (<br>
&gt; <a href="http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/Category.html" target="_blank">http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/Category.html</a>).<br>
&gt; The log4j bridge does not include deprecated functionality. Why is this? If<br>
&gt; the bridge is targeted for use in legacy applications it is most likely the<br>
&gt; code will make use of an older log4j where the methods were not marked as<br>
&gt; deprecated.<br>
&gt;<br>
&gt; Regards<br>
&gt; M. Hansen<br>
<br>
</div></div>--<br>
Ceki Gülcü<br>
<br>
QOS.ch is looking to hire talented developers located in<br>
Switzerland. Please contact ceki@qos.ch for details.<br>
_______________________________________________<br>
user mailing list<br>
<a href="mailto:user@slf4j.org">user@slf4j.org</a><br>
<a href="http://www.slf4j.org/mailman/listinfo/user" target="_blank">http://www.slf4j.org/mailman/listinfo/user</a><br>
</blockquote></div><br></div>