tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Remon Sadikni <remon.sadi...@zmaw.de>
Subject Error in Tomcat 6.0 log4j documentation
Date Mon, 06 Jun 2011 14:25:25 GMT
Dear Tomcat-Developers and Users,

I think there is an error in the Tomcat 6.0 logging documentation with 
log4j:
http://tomcat.apache.org/tomcat-6.0-doc/logging.html#Using_Log4j

For every appender there is a layout missing and in front of 
conversionPattern there is missing "layout.".  So for example for the 
appender CATALINA the right syntax would be:

log4j.appender.CATALINA=org.apache.log4j.DailyRollingFileAppender
log4j.appender.CATALINA.file=${catalina.base}/logs/catalina.
log4j.appender.CATALINA.encoding=UTF-8
# Roll-over the log once per day
log4j.appender.CATALINA.DatePattern='.'yyyy-MM-dd'.log'
log4j.appender.CATALINA.layout.conversionPattern = %d [%t] %-5p %c- %m%n
log4j.appender.CATALINA.layout=org.apache.log4j.PatternLayout
log4j.appender.CATALINA.append=true

The same errors appear in the Tomcat 7.0 documentation.

Thank you and Regards,
Remon



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message