tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Holger Klawitter <li...@klawitter.de>
Subject Re: tomcat and log4j
Date Tue, 01 Jul 2003 07:20:24 GMT
Am Dienstag, 1. Juli 2003 02:03 schrieb Dean A. Hoover:
> Thanks for responding. I'm just going by what it says in the log4j
> manual:
>
> "The default log4j initialization is particularly useful in web-server
> environments. Under Tomcat 3.x and 4.x, you should place the
>
> |log4j.properties| under the |WEB-INF/classes| directory of your
>
> web-applications. Log4j will find the properties file and initialize
> itself. This is easy to do and it works."

> log4j.appender.roll=org.apache.log4j.RollingFileAppender
> log4j.appender.roll.File=xxx.log
> log4j.appender.roll.MaxFileSize=100KB
> log4j.appender.roll.MaxBackupIndex=1
> log4j.appender.roll.layout=org.apache.log4j.PatternLayout
> log4j.appender.roll.layout.ConversionPattern=%d [%t] %-5p %F:%L - %m%n

The file might be written to a weird directory or couldn't be written at all. 
You should try an absolute path, like

log4j.appender.roll.File=${catalina.home}/logs/xxx.log

Mit freundlichem Gruß / With kind regards
	Holger Klawitter
--
lists <at> klawitter <dot> de


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


Mime
View raw message