Is it possible to have log4j.xml loaded from a different dir than source root and how? (programmatically?) Meaning that it\'s somewhere in FS not just in classpath.
Using DOMConfigurator you can specify the the XML file used to configure log4j.
DOMConfigurator.configure("/path/to/log4j.xml");
For log4j.properties you can do the same thing with PropertyConfigurator.
PropertyConfigurator.configure("/path/to/log4j.properties");