Toli's mail did not make it through: It was apparently posted through nabble:
http://www.nabble.com/Slf4J---user-f13203.html Here is a copy: Hi All, 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? apologies if these are stupid questions. thanks. Toli Kuznets <http://www.marketcetera.com:>http://www.marketcetera.com: Open-Source Trading Platform download.run.trade. -- Ceki Gülcü Logback: The reliable, generic, fast and flexible logging framework for Java. http://logback.qos.ch _______________________________________________ user mailing list [email protected] http://www.slf4j.org/mailman/listinfo/user
