Uploaded image for project: 'QuickFIX/J'
  1. QuickFIX/J
  2. QFJ-137

SLF4JLog prints itself instead of the actual logging class in the output

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Default
    • Resolution: Fixed
    • Affects Version/s: 1.0.5
    • Fix Version/s: 1.1.0
    • Component/s: Engine
    • Labels:
      None

      Description

      Seems that the SFL4JLog is not setup to correctly show the actual class/line printing the message.
      All the messages come out looking like this:
      18:30:16,736 INFO [QFJ Timer] quickfixj.msg.outgoing (SLF4JLog.java:90) - FIX.4.2:MRKTC-OMS->MRKTC-EXCH: 8=FIX.4.29=6335=034=2749=MRKTC-OMS52=20070210-02:30:16.73256=MRKTC-EXCH10=114

      with (SLF4JLog.java:90) always being the line origin of where the message is coming from.

      I know that in Log4J they have a concept of a "wrapper function" name that gets passed in to the log function to make sure the wrapper doesn't get printed:
      http://logging.apache.org/log4j/docs/api/org/apache/log4j/Category.html#log(java.lang.String,%20org.apache.log4j.Priority,%20java.lang.Object,%20java.lang.Throwable)

      Perhaps there's some similar approach for SLF4J as well?

        Attachments

          Activity

            People

            • Assignee:
              toli Toli Kuznets
              Reporter:
              toli Toli Kuznets
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: