log4j.properties <--- log4j.rootLogger=DEBUG,A1 log4j.logger.org.apache.struts.tiles=WARN
# A1 is set to be a ConsoleAppender. log4j.appender.A1=org.apache.log4j.ConsoleAppender
# A1 uses PatternLayout. log4j.appender.A1.layout=org.apache.log4j.PatternLayout log4j.appender.A1.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n
commons-logging.properties <--- org.apache.commons.logging.LogFactory=org.apache.commons.logging.impl.Log4jFactory
The commons-logging.properties file says "Hey, commons-logging, I'm using Log4J as my logging implementation!". From there, you just need to configure Log4J to your needs. If you need more sophisticated control over Log4J, see the Log4J site: http://jakarta.apache.org/log4j
Enjoy! ;-)
Rieberger, Dale wrote:
Need an example of a commons-logging.properties and log4j.properties files.
-- Eddie Bush
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

