Hi Mark,
for me log4j only works with this additional line per appender:
log4j.appender.CATALINA.layout=org.apache.log4j.PatternLayout
Thanks,
Remon
On 06/06/2011 07:09 PM, Mark Thomas wrote:
On 06/06/2011 15:25, Remon Sadikni wrote:
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.
Thanks for the report.
I could see the missing "layout." but no missing layouts for the appenders.
The fixes will be in 7.0.16 and 6.0.33.
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
--
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Dipl. Inf. Remon Sadikni
Scientific Programmer
University of Hamburg / KlimaCampus Hamburg
Center for Integrated Climate System Analysis and Prediction - CliSAP
Grindelberg 5 / D-20144 Hamburg / Germany
phone: +49-40-42838-7581
email: remon.sadi...@zmaw.de
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org