Uploaded image for project: 'SLF4J'
  1. SLF4J
  2. SLF4J-161

Add log4j's NDC support in log4j-over-slf4j

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: 1.5.x
    • Fix Version/s: None
    • Component/s: log4j-over-slf4j
    • Labels:
      None
    • Environment:

      Operating System: Linux
      Platform: PC

      Description

      It would be nice to support log4j's NDC class.
      For example http://opensaml.org depends on that.

      It is a straight forward port that simply delegate all log4j's NDC calls to slf4j's NDC static methods.

      This commit http://github.com/hmalphettes/slf4j/commit/2d30df3bd74e920d505308b322579d6fbbb4e1ab
      Does add such support and behaves well with opensaml.

      I also found a missing Import-Package in log4j-over-slf4j's MANIFEST for OSGi.
      org.apache.log4j.Log4jLoggerFactory requires org.slf4j.helpers.Util

      Cheers,
      Hugues.

        Attachments

          Activity

            People

            • Assignee:
              slf4j-dev SLF4J developers list
              Reporter:
              hmalphettes Hugues Malphettes
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: