http://bugzilla.slf4j.org/show_bug.cgi?id=24

           Summary: Log4J Conversion Parameters
           Product: SLF4J
           Version: unspecified
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Implementations
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


I am using jcl104-over-slf4j.jar, slf4j-log4j212.jar and log4j (1.2.8) to do 
logging.

My log4j.xml is as follows - 

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"; 
debug="true">
   
   <appender name="Console" class="org.apache.log4j.ConsoleAppender">
      <errorHandler class="org.apache.log4j.helpers.OnlyOnceErrorHandler"/>
      <layout class="org.apache.log4j.PatternLayout">
         <param name="ConversionPattern" value="[Level:%p][%C:%M]%m%n"/>
      </layout>
   </appender>
                
        <logger name="com" additivity="false">
                <level value="debug"/>
                <appender-ref ref="Console"/>
        </logger>

</log4j:configuration>

I use %C and %M to log the values of class and method that generated the 
logging request. When I use JCL + Log4j (or log4j directly) the debug 
statements that are logged contain the correct value. 

However with Slf4J jars %C returns org.apache.commons.logging.impl.SLF4JLog 
and %M returns for all the debug statements which is clearly incorrect.

%L and %l also dont return correct values.

-- 
Configure bugmail: http://bugzilla.slf4j.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
_______________________________________________
dev mailing list
[email protected]
http://slf4j.org/mailman/listinfo/dev

Reply via email to