At runtime in my application, I'd like to specify the location of the log4j configuration file dynamically.
This is so that rather than this being a resource bundled in the JAR, it's an actual file on disk that can be edited if there is a problem to increase logging levels.
When using log4j v1.2, you can use DOMConfigurator.configure(URL) to do this.
But now I've upgraded to log4j-slf4j-impl / log4j v2, this method no longer exists.
I can see how to configure log4j directly, but I want to use the existing slf4j compatible XML file without having to change it.
Can anyone help?