https://issues.apache.org/bugzilla/show_bug.cgi?id=51025
Summary: PropertyConfigurator does not properly set up
ErrorHandler
Product: Log4j
Version: 1.2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Configurator
AssignedTo: [email protected]
ReportedBy: [email protected]
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
suceess.
- 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: [email protected]
For additional commands, e-mail: [email protected]