-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Igor,

On 04/18/2011 07:38 AM, Igor Cicimov wrote:
> I have a question about rotating catalina.out file. Is there any way to
> accomplish this through Tomcat without using external tool like logrotate
> for example as shown in the following thread:
> 
> http://marc.info/?t=105544472600001&r=1&w=2

No, catalina.out is is just redirected STDOUT and STDERR, you need an
external tool for rotating it.

> I understand that this might be a matter of bad coding practice but since
> I'm not the developer of the applications running on the server I can't do
> much about it. The applications are configured to use log4j but the
> developers say they can't do much to redirect the applications console
> output to the log files.

If log4j is really used check the configuration for a ConsoleAppender
(and disable it). If no logging framework is used, "swallowOutput" in
your context configuration (see
http://tomcat.apache.org/tomcat-6.0-doc/config/context.html) might help
to keep your catalina.out clean.

Regards,
- -- 
Thomas Freitag
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAk2r0o0ACgkQGE5pHr3PKuUotwCfadypG387UpnSkEwkSeudlPsi
PmgAn0dWtrgaPIn5Ky8znLCzeMeWJ+OW
=HbCM
-----END PGP SIGNATURE-----

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

Reply via email to