[slf4j-dev] [Bug 44] New: Repeat of bug 23: Log origination function doesn't show up correctly with slf4j-log4j

bugzilla-daemon at pixie.qos.ch bugzilla-daemon at pixie.qos.ch
Tue Apr 3 01:35:03 CEST 2007


show_bug.cgi?id=44

           Summary: Repeat of bug 23: Log origination function doesn't show
                    up correctly with slf4j-log4j
           Product: SLF4J
           Version: unspecified
          Platform: All
               URL: http://www.nabble.com/Re%3A-Seeing-right-log-
                    origination-functions-with-slf4j-log4j-tf3488050.html
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Implementations
        AssignedTo: dev at slf4j.org
        ReportedBy: toli at marketcetera.com
 BugsThisDependsOn: 23


I'm having an issue that's similar to bug 23
(<http://bugzilla.slf4j.org/show_bug.cgi?id=23%29:>http://bugzilla.slf4j.org/show_bug.cgi?id=23):
when i use the SLF4J-Log4j combo, all the output shows up with my logger
instead of the actual place where the log is printed:
17:24:02,552  INFO [main] quickfixj.event (SLF4JLog.java:92) -
FIX.4.2:SENDER1175041388559->TARGET1175041388561: TEST123

Which made me think that the wrong wrapper function value is being passed
in. I looked at bug 23, and I think that the problem applies not only to
the jcl104-over-slf4j, but to the underlying Log4j adapter as well.

I am using SLF4j as part of Quickfix/J (trying to fix our bug
<http://www.quickfixj.org/jira/browse/QFJ-137>http://www.quickfixj.org/jira/browse/QFJ-137),
and I'm seeing this in the output:
17:24:02,552  INFO [main] quickfixj.event (SLF4JLog.java:92) -
FIX.4.2:SENDER1175041388559->TARGET1175041388561: TEST123

Which looks like the problem in bug 23. I looked at the fix, i saw that
Log4jLoggerAdapter was modified to implement the LocationAwareLogger, but I
don't see how i can get to the log() method taking the FQCN through a
regular org.slf4j.logger.Logger class

Am i missing something? Should i be getting the logger through some other
factory?

What is the recommended way to obtain a LocationAwareLogger? What factory
calls do i need to make?


-- 
Configure bugmail: userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the slf4j-dev mailing list