Are there any example log4j configuration files (XML).
I have a java main application.
I want log4j to output to console AND write to file.
Any examp
The typical thing to do is to put a log4j.properties file in your classpath. The log4j doc will tell you all you need to know about having two appenders for the console and a file, it's in their examples. In other words, don't bother with the less common XML format and stick with the very common properties format.