Bug 42257 - Enhance DOMConfigurator to delegate unrecognized elements to created objects
Summary: Enhance DOMConfigurator to delegate unrecognized elements to created objects
Alias: None
Product: Log4j - Now in Jira
Classification: Unclassified
Component: Configurator (show other bugs)
Version: 1.2
Hardware: Other other
: P2 enhancement
Target Milestone: ---
Assignee: log4j-dev
Depends on:
Reported: 2007-04-25 21:11 UTC by Curt Arnold
Modified: 2007-04-26 12:30 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description Curt Arnold 2007-04-25 21:11:24 UTC
o.a.l.rolling.RollingFileAppender and plugins which have been back-ported from log4j 1.3 to work with 
log4j 1.2 have required extensions of DOMConfigurator.  This enhancement to DOMConfigurator calls 
UnrecognizedElementHandler.parseUnrecognizedElement on configured objects when an unrecognized 
element is encountered in the configuration file and the configured object supports the interface.  This 
allows user-added classes to implement custom configuration elements.  The log4j.dtd will also be 
modified to declare plugin, rollingPolicy and triggeringPolicy to eliminate warnings during XML validation, 
but they will not be interpreted unless the corresponding companion is on the class path.  Unrecognized 
child elements of log4j:configuration will be delegated to the LoggerRepository.
Comment 1 Curt Arnold 2007-04-26 12:30:36 UTC
Committed in revs 532826 and 532603.