Uploaded image for project: 'MINA'
  1. MINA
  2. DIRMINA-794

Log4jXmlFormatter is unnecessarily tied to BasicMDCAdapter

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • Core
    • None

    Description

      The class org.apache.mina.util.Log4jXmlFormatter will only output the contents of the SLF4J MDC if the MDCAdapter used is an instance of BasicMDCAdapter. This has two problems:
      1) It excludes Log4j and Logback, the MDCAdapters for which do not extend BasicMDCAdapter
      2) It creates a dependency on (what should be) an internal SLF4J class

      Attachments

        1. DIRMINA-794.patch
          2 kB
          Justin Edelson

        Issue Links

          Activity

            People

              elecharny Emmanuel Lécharny
              justinedelson Justin Edelson
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: