tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "GOMEZ Henri" <hgo...@slib.fr>
Subject RE: logrotate and tomcat 3.3/4.0/4.1
Date Mon, 29 Apr 2002 16:03:09 GMT
>I don't really know much about log4j, so I can't comment on 
>that particular methodology, but I'd been looking at 
>implementing a logrotate for tomcat on my systems.  I was 
>thinking something like this for tomcat 3.3 (haven't looked at 
>4.x yet):
>
>/var/log/tomcat3/jasper-*.log /var/log/tomcat3/servlet-*.log 
>/var/log/tomcat3/tomcat.log {
>	weekly
>	notifempty
>	missingok
>	postrotate
>		kill -HUP $(cat /var/log/tomcat3/tomcat.pid)
>	endscript
>}
>
>Of course that's 3.3 specific and not even current 3.3 (3.3a 
>instead of 3.3.1).  Would this be what you're looking for (and 
>would it even work :-)?

logrotate won't works since tomcat need to detach from file,
close it and create a new one just after.

A good choice would be to use log4j for all log purposes..

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message