tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Clearing the catalina.out file
Date Fri, 14 Aug 2009 16:59:28 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

George,

On 8/14/2009 12:48 PM, George Sexton wrote:
> Logrotate isn't going to work because the file is never re-set.
> Typically, when you use LogRotate with something like apache you send
> a command to re-start it.

Sure it will. Check the "copytruncate" option.

> So, if you want to reset catalina.out you need to re-start tomcat.

No, you don't. Why do people make statements like this? You can try it
yourself. It takes like 5 seconds:

$ bin/startup.sh
(observe log file with messages)
$ > logs/catalina.out
(observe empty log file)
(redeploy an application, or do something that will generate output in
catalina.out)
(observe new messages in catalina.out)

What part of that doesn't work?

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkqFl/AACgkQ9CaO5/Lv0PCpygCdE288YkjvpIvBkHMCYv18viiy
P/AAoL830BS8YKua+6t95qBjTSQI93H1
=xJUS
-----END PGP SIGNATURE-----

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


Mime
View raw message