[slf4j-dev] [Bug 240] New: Log4jLoggerAdapter.log(...) ignores argument array

bugzilla-daemon at pixie.qos.ch bugzilla-daemon at pixie.qos.ch
Fri Sep 9 12:32:11 CEST 2011


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

           Summary: Log4jLoggerAdapter.log(...) ignores argument array
           Product: SLF4J
           Version: 1.6.x
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: blocker
          Priority: P1
         Component: Implementations
        AssignedTo: slf4j-dev at qos.ch
        ReportedBy: simone.bordet at gmail.com


The implementation of 

Log4jLoggerAdapter.log(Marker marker, String callerFQCN, int level, String msg,
Object[] argArray, Throwable t) 

seems to assume that the the "msg" parameter is the formatted message, not the
format string. The same class, however, contains other methods that perform
correct formatting of the format string.

Therefore, either a clarification in the javadocs of LocationAwareLogger is
needed to specify that the "msg" parameter must already be the formatted
message, or the implementation in Log4jLoggerAdapter is missing the formatting
step.

Thanks !

-- 
Configure bugmail: http://bugzilla.slf4j.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the slf4j-dev mailing list