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

Hong,

On 5/15/12 10:04 AM, Le, Hong D. wrote:
> I have tried so many ways to rotate tomcat stdout log file daily or
> by size but unable to achieve the goal.

What did you try?

> My log file grows very quick because I have to set ssl and
> handshake to debug mode.

This isn't in production, is it? You certainly don't want anything in
debug mode in production - at least not for long.

> I appreciate if you can help me how to do.

Obviously, the best thing is not to dump a lot of stuff to stdout.
Recent versions of Tomcat (you didn't say what you've got) have a
"swallowOutput" option on specific webapps, but that is unlikely to
affect JSSE debug logging.

Since Tomcat's logs/catalina.out is done using shell redirection, the
stream moves with the file, so you can't just re-name the file: you'd
have to restart Tomcat after moving the file which isn't really a good
option.

You could try to use a logging-pipe that knows how to rotate files and
hack catalina.sh to use that instead of "[...] > logs/catalina.out"
that is in there currently.

Good luck,
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk+yb9IACgkQ9CaO5/Lv0PBUEgCgrc9eirH0c+bRCzkkpkkgsyyb
W9sAmwfRhP2C4OihZa27P3UkSnuCAhsy
=g4yl
-----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