• Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.1
    • Fix Version/s: 1.0.3
    • Labels:
    • Environment:

      Operating System: All
      Platform: All


      I am requesting that the code added to Log4JCategory in
      commons-logging-1.0.1 that sets up a default initialization in log4j be

      Why? When I put 1.0.1 in place of 1.0, I started getting extraneous
      messages logged to the console. Subsequent research led me to the new
      initialization code in Log4JCategory. The problem is in the way the
      initialization code tries to decide if log4j has been configured. It
      assumes that the root category has been configured with an appender. I
      happen to have a log4j properties configuration that doesn't configure
      an appender, so the initialization code couldn't tell that log4j had
      been configured, it created the default root appender, and I started
      getting the extraneous messages.

      I realize there are easy workarounds for my particular problem, but I
      believe this presents a more philosophical issue. Quoting from the
      commons-logging api org.apache.commons.logging package description:

      "The basic principle is that the user is totally responsible for the
      configuration of the underlying logging system. Commons-logging should
      not change the existing configuration."

      The code in question directly violates this expressly stated principal
      and is inappropriate. Allowing this code to remain opens a Pandora's box
      of attempts to configure the underlying logger, which should be resisted
      based on the above principal.


        Steven Caswell created issue -
        Henri Yandell made changes -
        Field Original Value New Value
        issue.field.bugzillaimportkey 13201 12340345
        Henri Yandell made changes -
        Affects Version/s 1.0.1 Final [ 12311660 ]
        Project Commons [ 12310458 ] Commons Logging [ 12310484 ]
        Key COM-194 LOGGING-41
        Assignee Jakarta Commons Developers Mailing List [ ]
        Component/s Logging [ 12311124 ]
        Henri Yandell made changes -
        Affects Version/s 1.0.1 Final [ 12311824 ]
        Dennis Lundberg made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Dennis Lundberg made changes -
        Status Closed [ 6 ] Reopened [ 4 ]
        Dennis Lundberg made changes -
        Resolution Fixed [ 1 ]
        Status Reopened [ 4 ] Resolved [ 5 ]
        Henri Yandell made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Dennis Lundberg made changes -
        Fix Version/s 1.0.3 [ 12311839 ]


          • Assignee:
            Steven Caswell
          • Votes:
            4 Vote for this issue
            0 Start watching this issue


            • Created: