The document provides examples of log4j.xml configuration files to output logging to the console, to a file, and to both the console and a file. The first example configures a console appender to output logs to the console. The second example configures a file appender to output logs to a file called myStruts1App.log. The third and full example configures both a console and file appender to output logs to both the console and the myStruts1App.log file.