Application Server 3  4  5 and 6
  1. Application Server 3 4 5 and 6
  2. JBAS-1313

RepositorySelector should be integrated into JBoss Server

    Details

    • Type: Feature Request Feature Request
    • Status: Closed Closed (View Workflow)
    • Priority: Minor Minor
    • Resolution: Won't Fix Won't Fix
    • Affects Version/s: None
    • Fix Version/s: 6.0.0.M3
    • Component/s: JMX
    • Security Level: Public (Everyone can see)
    • Labels:
      None
    • Similar Issues:
      Show 10 results 

      Description

      Often, an application will want to have its own log4j configuration and have all log messages generated go to an application-specific log file. Solutions to this problem are documented on this wiki page: http://www.jboss.org/wiki/Wiki.jsp?page=Logging

      The log4j RepositorySelector provides a clean solution to this problem without any special classloader settings. However, at the present time, a developer must create his own version of a RepositorySelector and make sure his application initializes it properly.

      This can be difficult to accomplish because the RepositorySelector feature is not well known and takes time to understand. It can also be difficult to make sure that the RepositorySelector is initialized before the application makes ANY call to Logger.getLogger().

      We can instead, provide a RepositorySelector implementation as part of the JBoss Application server. If a deployer finds a log4j.xml file in the /META-INF direcotry (or /WEB-INF for WARs) it would add an entry into the RepositorySelector for that application. Then, logging from that application would use the custom log4j configuration.

        Issue Links

          Activity

          Hide
          Dimitris Andreadis
          added a comment -

          Move the fix to 5.1.0. There won't be a 5.0.1 release.

          Show
          Dimitris Andreadis
          added a comment - Move the fix to 5.1.0. There won't be a 5.0.1 release.
          Hide
          Jason Greene
          added a comment -

          Moving to CR1

          Show
          Jason Greene
          added a comment - Moving to CR1
          Hide
          Jason Greene
          added a comment -

          Reschedule this if you fix it sooner.

          Show
          Jason Greene
          added a comment - Reschedule this if you fix it sooner.
          Hide
          David Lloyd
          added a comment -

          There is a lot of overlap between this and the new POJO-based logging service. See http://www.jboss.org/community/wiki/LoggingPOJOServiceRequirements for more info on that. I'd be inclined to close this as "won't fix". Stan?

          Show
          David Lloyd
          added a comment - There is a lot of overlap between this and the new POJO-based logging service. See http://www.jboss.org/community/wiki/LoggingPOJOServiceRequirements for more info on that. I'd be inclined to close this as "won't fix". Stan?
          Hide
          Stan Silvert
          added a comment -

          This is taken care of by the Logging POJO Service.

          Show
          Stan Silvert
          added a comment - This is taken care of by the Logging POJO Service.

            People

            • Assignee:
              Stan Silvert
              Reporter:
              Stan Silvert
            • Votes:
              7 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: