logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ralph Goers (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LOG4J2-494) Support composite configurations
Date Wed, 27 Jan 2016 12:22:39 GMT

    [ https://issues.apache.org/jira/browse/LOG4J2-494?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15119142#comment-15119142
] 

Ralph Goers commented on LOG4J2-494:
------------------------------------

This should be possible to do.  Creating a configuration is a two phased process. First, the
configuration is parsed into a node tree and then the node tree is walked to create the plugins.


If I was implementing this I would convert the configurations into their nodes and merge those.
Then I would let the existing process continue to create the plugins.

> Support composite configurations
> --------------------------------
>
>                 Key: LOG4J2-494
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-494
>             Project: Log4j 2
>          Issue Type: New Feature
>          Components: Configurators
>    Affects Versions: 2.0-beta9
>            Reporter: Ralph Goers
>            Assignee: Ralph Goers
>
> Support was added to XMLConfiguration to allow XIncludes in the XML files. While this
can be useful it does not allow for the use case where someone wants a default configuration
and then a custom configuration to be merged with it.
> I am proposing creating a CompositeConfiguration class that accepts a comma separated
list of configuration files. It would then use the Configuration factories to create the appropriate
Configuration classes for each of the underlying files.  It would then merge the Node hierarchies
created by each into a single tree and then finally construct the actual configuration Objects
from that tree.
> There are a few issues with this - for example each configuration can specify debug and
verbose attributes, duplicate property settings, handling duplicate Appender names, etc. 
Most of these should be fairly easy to resolve.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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


Mime
View raw message