logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 51025] New: PropertyConfigurator does not properly set up ErrorHandler
Date Tue, 05 Apr 2011 21:19:14 GMT

           Summary: PropertyConfigurator does not properly set up
           Product: Log4j
           Version: 1.2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Configurator
        AssignedTo: log4j-dev@logging.apache.org
        ReportedBy: g@raphaelli.com

Created an attachment (id=26858)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=26858)
Patch to ErrorHandlerTestCase to expose issue with 1.2.16 PropertyConfigurator

When configuring log4j using a properties-style file an appender's error
handler is not set up properly.  Attached to this bug are two patches:

 - fix the ErrorHandlerTestCase to expose this bug - the current test is
picking up the results from the first test run resulting in a false positive

 - update PropertyConfigurator to set the appender on the defined ErrorHandler,
as xml.DOMConfigurator does, plus a set of fixes to parse the property file
correctly.  fixing parsing without the appender fix results in a npe, as there
is no primary appender.  fixing the the appender without the parser updates
prevents a failback appender from ever being configured.

Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org

View raw message