Log4j allows multiple configuration files to be used by specifying them as a list of comma separated file paths on log4j.configurationFile property. This feature is not available in web environment since the log4jConfiguration context parameter accepts a single Path/File/URI.
My proposal is to apply some small changes in the Log4jWebInitializerImpl class
- change method getConfigURI to return List<URI> instead of URI.
- change method initializeNonJndi