Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-3680

Logging locations are hidden with Slf4jLogger

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.4.1, 2.3.5
    • 2.3.6, 2.4.2, 2.5
    • None
    • None

    Description

      The current CXF Slf4jLogger just invokes the internal slf4j logger object.
      In this way, it cannot show the original logging location.
      For example, when logging configuration contains something like '%C:%L', it
      prints the Slf4jLogger class name and its line number instead of the caller's class name and its line number.
      In order to show the original logging locations nicely, we can use LocationAwareLogger#log(, fqcn, ...) operation. With provision of the FQCN of the wrapper class, the underlying slf4j logger will find the exact logging location.

      I'll provide a patch for this in this issue.

      Attachments

        1. CXF-3680-patch.diff
          4 kB
          Woonsan Ko

        Activity

          People

            dkulp Daniel Kulp
            woon_san Woonsan Ko
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: