Uploaded image for project: 'ServiceMix 4'
  1. ServiceMix 4
  2. SMX4-1002

Use SLF4J instead of Java standard logging for CXF in SMX

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 4.3.0
    • 4.4.0
    • Bundles
    • None
    • ServiceMix 4.3

    Description

      CXF uses by default the default Java logging framework (java.util.logging).
      This framework does not support MDC (Mapped Diagnostic Context).
      If the MDCSiftingAppender is used to have separate files for each route,
      all CXF logs end up in the default file.

      Solution : add the following line :
      org.apache.cxf.Logger=org.apache.cxf.common.logging.Slf4jLogger
      in the file
      $SERVICEMIX_HOME/etc/system.properties

      I propose to make it the default value in the ServiceMix distribution, if nobody sees any down-sides.
      http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/assemblies/shared/src/main/resources/etc/system.properties

      Thanks.

      Attachments

        Activity

          People

            ffang Freeman Yue Fang
            metatech metatech
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 0.5h
                0.5h
                Remaining:
                Remaining Estimate - 0.5h
                0.5h
                Logged:
                Time Spent - Not Specified
                Not Specified