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

Scot Hale  commented on LOG4J2-1429:
------------------------------------

Xinclude doesn't allow class path resources, and has only relative file path 
requirements.  Also it only works for XML I think.

The composite configuration I have been trying to use, but I don't really want 
client applications to have to change their startup system properties (It 
requires a fair amount of operational work for me).  I haven't tested the 
reloading behavior with composite configuration, but if additional 
configuration files ( including classpath resources ) could be provided after 
the logger was initialized, then that would work for my use case.  From the 
documentation it does not seem like that is possible though.

> Configuration File Include 
> ---------------------------
>
>                 Key: LOG4J2-1429
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-1429
>             Project: Log4j 2
>          Issue Type: New Feature
>          Components: Configurators
>            Reporter: Scot Hale 
>
> Configuration File Include 
> logback has a configuration feature that allows a fragment of a file to be 
> included.  The file source can be a file, classpath resource, or a URL.  The 
> feature is documented here: 
> http://logback.qos.ch/manual/configuration.html#fileInclusion .  This 
> requested feature need not be implemented the same.  Instead of fragments, it 
> would probably be okay to supply a full configuration and merge it. Either 
> implementation would work for my specific use case.
> Each of the included files should be checked for changes on the 
> monitorInterval to allow a reload of the configuration.
> Also includes can be considered "optional", which allows the resource to be 
> missing.
> The main use case I have as a requestor, is to create a configuration and 
> package it in a jar.  The jar is provided to multiple applications which can 
> adjust the logging levels at runtime for diagnostic purposes with well known 
> included files.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to