The class org.fcrepo.utilities.LogConfig initializes the logback configuration with its initFromFile method. It does so, however, by setting the system property logback.configurationFile if it is not already set. This leads to one of the following problems:
- If the property is already set, the fedora logback configuration is not used.
- If the property is not already set, Fedora sets it, overriding any logback.xml files that may be on the classpath, even for other web applications.
A better way to programmatically load a logback configuration, just for your own webapplication, would be to use a ServletContextListener and have it execute something like the following in its contextInitialized method: