Uploaded image for project: 'ServiceMix'
  1. ServiceMix
  2. SM-1317

Add a system property to change CXF to use Log4J instead of JUL

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.2.1, 3.2.2, 3.2.3, 3.3
    • 3.2.4, 3.3.1
    • servicemix-assembly
    • None

    Description

      By default CXF uses the java.util.logging (JUL) API for logging. This results in the following output:

      INFO - ComponentMBeanImpl - Starting component: servicemix-cxf-se
      INFO - ComponentMBeanImpl - Initializing component: servicemix-cxf-se
      Apr 17, 2008 11:43:17 AM org.apache.cxf.bus.spring.BusApplicationContext getConfigResources
      INFO: No cxf.xml configuration file detected, relying on defaults.
      INFO - ComponentMBeanImpl - Starting component: servicemix-cxf-bc
      INFO - ComponentMBeanImpl - Initializing component: servicemix-cxf-bc
      Apr 17, 2008 11:43:18 AM org.apache.cxf.bus.spring.BusApplicationContext getConfigResources
      INFO: No cxf.xml configuration file detected, relying on defaults.
      INFO - AutoDeploymentService - Directory: hotdeploy: Finished installation of archive: servicemix-shared-3.2.2-SNAPSHOT-installer.zip

      Note that the CXF output format is different than the SMX output. This is simply due to log formatting and is easiest to remedy through the use of a system property as described in the CXF docs Using Log4j Instead of java.util.logging.

      Attachments

        Activity

          People

            ffang Freeman Yue Fang
            bsnyder Bruce Snyder
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: