log4j.properties vs log4j.xml
Have a look at the JavaDoc. The documentation of the PropertyConfiguratorClass (log4j.properties) points out that The PropertyConfigurator does not handle the advanced configuration features supported by the DOMConfigurator such as support custom ErrorHandlers, nested appenders such as the AsyncAppender, etc. So the DOMConfigurator (log4j.xml) offers advanced options. Beside that you can have (at least a … Read more