Before moving on to test the JAW Motors application's new logging functionality, let's recap what we've done to add logging to the application:
Created the commons-logging.properties file that tells Apache Jakarta Commons Logging (JCL)) to use Log4J as its implementation.
Used Apache JCL calls in the JAW Motors application code.
Added a Log4J Configuration file, jbossatwork-log4j.xml, to tell Log4J to format messages and where to log them.
Developed a log4j.extra.properties file that defines where the log file resides.
Wrote an Initialization Servlet to configure Log4J at JBoss startup, deferring the low-level setup details to utility classes.
Deployed the logging implementation in the Common JAR:
The Apache JCL and Log4J JARs, properties files, and new utility classes go in the root directory.