Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-5934

[GSS](7.1.0) logging profile with apache commons does not work

    XMLWordPrintable

Details

    • Bug
    • Status: Verified (View Workflow)
    • Major
    • Resolution: Done
    • 7.1.0.DR5
    • 7.1.0.DR6
    • Logging
    • None
    • Hide

      1 - Create an application that uses apache commons to log, for example:

      import org.apache.commons.logging.Log;
      import org.apache.commons.logging.LogFactory;

      public class AppConfig

      { private static final Log logger = LogFactory.getLog(AppConfig.class); .... logger.info(...) }

      2 - create two logging profiles:

      • app1.war
        Logging-Profile: app1-logging
      • app2.war
        Logging-Profile: app2-logging

      Actual results:

      • app1.war writes a log messages with category a.b.c, the ROOT-logger from the logging-profile app1-logging handles the message
      • after that app2.war writes a log message with the same category a.b.c, this message is also handled by the ROOT-logger from the logging-profile app1-logging and not, as expected, by the ROOT-logger from logging-profile app2-logging

      Expected results:

      app1.war writes logs to app1-logging logging profile log file
      app2.war writes logs to app2-logging logging profile log file

      Show
      1 - Create an application that uses apache commons to log, for example: import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; public class AppConfig { private static final Log logger = LogFactory.getLog(AppConfig.class); .... logger.info(...) } 2 - create two logging profiles: app1.war Logging-Profile: app1-logging app2.war Logging-Profile: app2-logging Actual results: app1.war writes a log messages with category a.b.c, the ROOT-logger from the logging-profile app1-logging handles the message after that app2.war writes a log message with the same category a.b.c, this message is also handled by the ROOT-logger from the logging-profile app1-logging and not, as expected, by the ROOT-logger from logging-profile app2-logging Expected results: app1.war writes logs to app1-logging logging profile log file app2.war writes logs to app2-logging logging profile log file
    • Workaround Exists
    • Hide

      use jboss-logging

      Show
      use jboss-logging
    • Documentation (Ref Guide, User Guide, etc.), Release Notes
    • Fix is merged upstream.

    Description

      All entry logs go to the log file of the first accessed application logging profile.

      Attachments

        Issue Links

          Activity

            People

              jperkins-rhn James Perkins
              rhn-support-lkonno Leticia Konno
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: