[slf4j-user] Log4j over SLF4J incorrect value for Source Class Name

Ceki Gulcu ceki at qos.ch
Thu Mar 26 21:54:51 CET 2009


Hello Marc,

It's a rather surprising shortcoming (=bug) in log4j-over-slf4j. Please enter a 
bug report in http://bugzilla.slf4j.org/ so that the problem can be corrected in 
future releases.

TIA,

Marc Zampetti wrote:
> I'm using the log4j-over-slf4j to route apps that use log4j to JUL. The
> problem that I run into is when the message is finally routed to the JDK JUL
> formatter, the correct information for the Source Class Name is wrong.
> Instead of being the class name of the class that called the log4j
> Logger.info() method, the class name is log4j.Category. 
> 
> Anyone know why this is, and how do I fix it?  I'm using slf4j 1.5.6.

-- 
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