I've spent a fair amount of time going through the mailing lists, so hopefully this is not duplicate. What I want to do is fairly straightforward conceptually. I want to be able to load log4j configuration from two (or more) separate config files without using separate classloaders or similar tricks, since I want both configs applied to a single LoggerRepository. The reason for this is I have a base log4j configuration across all applications plus some specific configurations for each application.
In this example let's say the two config files are: default_log4j.xml which contains the basics like setting the logger level and attaching some appenders to the logger "foo.bar" and app_log4j.xml which provides application specific configuration (possibly adding more appenders to " foo.bar"). Ideally the loading process would cascade so if default_log4j.xml was (re)loaded then app_log4j.xml would also be loaded. However, if only app_log4j.xml was (re)loaded default_log4j.xml would not be reloaded. This is a fairly simple example with only two levels, but I believe this could be used to cascade more levels of config. Is this possible at all or is this going to be a major roll-your-own project? Thanks, Matthew Kemp
