[slf4j-user] blog entry on JCL

Ceki Gülcü listid at qos.ch
Mon Feb 19 19:09:55 CET 2007


Hi Tim,

Many thanks for your contribution. However, bug 23 has been already fixed 
in a way completely transparent to the end-user.  The fix should be 
released along with SLF4J version 1.3.

Cheers,


At 11:26 AM 2/19/2007, Tim Vernum wrote:
>>>The disappearing location info problem has been previously
>>>reported [1].
>>>Unfortunately, since there are two indirections involved
>>>(jcl->slf4j->log4j), it is not possible to correctly compute the
>>>location
>>>information.
>>>
>>>[1] http://bugzilla.slf4j.org/show_bug.cgi?id=23
>>>
>>>>    <appender name="CONSOLE"
>>>>class="org.apache.log4j.ConsoleAppender">
>>>>        <layout class="org.apache.log4j.PatternLayout">
>>>>            <param name="ConversionPattern"
>>>>                value="%p [%t] %c{1}.%M(%L) | %m%n"/>
>>>>        </layout>
>>>>    </appender>
>
>Sorry I'm so late coming into this - we hit an unexpected storm
>season over here, and it sucked up a bit of my time.
>
>There is a solution to this, but it's somewhat of a hack. It does
>appear to work though (from my limited testing).
>
>You could try using the attached layout, with your appender
>configured like this:
>    <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
>        <layout
>class="org.adjective.useful.log4j.Slf4jFilteringPatternLayout">
>            <param name="ConversionPattern"
>                value="%p [%t] %c{1}.%M(%L) | %m%n"/>
>        </layout>
>    </appender>
>
>As I said, it's a bit of a hack, but that's the travesty of commons- 
>logging :)
>
>
>
>
>
>_______________________________________________
>user mailing list
>user at slf4j.org
>http://www.slf4j.org/mailman/listinfo/user

-- 
Ceki Gülcü
Logback: The reliable, generic, fast and flexible logging framework for Java.
http://logback.qos.ch




More information about the slf4j-user mailing list