-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Michael,

On 10/25/13, 10:21 AM, Web2 Solutions wrote:
>> David N. Smith <mailto:david.sm...@cornell.edu> 25 Oct 2013
>> 13:42
>> 
>> Configuring your apps to use a true logging system and
>> configuring the log system to rotate is the best option. Barring
>> that, it get's tricky. You might be able to get away with copying
>> the log file to another and then truncating the original but I
>> think that only really works on *nix based systems. Windows if
>> memory serves will pad the truncated file with empty space and
>> append right were it left off.
> 
> I'm on linux and I would test the moving renamed file to a new
> folder. How comes Tomcat does not have a layer for logrotate for
> this?!

Tomcat is redirecting stdout, here. The real solution is not to have
anything log to stdout and instead use a proper logger. The things
that are logging to stdout are usually within whatever webapp you are
running. Tomcat very rarely writes anything itself to stdout.

http://stackoverflow.com/questions/10698036/log4j-logging-in-catalina-date-log/10755672#10755672

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.15 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJSarjkAAoJEBzwKT+lPKRYzDYP/1VZvJS16FAmmDj1tdFmCs44
SphiO1Lh+HZX+l4C32bUbzy7+CpOh/LPjJ0FC6u/wBxyKNFaqSkRZwVeQ0JQz89v
OwM1AyFVoGJ8PtuTfvbVsNR8vieURf0D6Vdx8ZQ6uXYS1ZXOUzJmB8/AJrfuNPFX
Axgsrgi/dY10eglPD76nhFDZ/QtJkpjfa5Erm7/ajQZxcgnmuRKvB46D4i4Qluug
YFGR6L3ZZJqh4pebAo0eZeBVGB8nBUKTWbbaTaKhg8RPbHY7K74A1ZX9s+C7fk5L
Q8rF7qO7q++KNivzIV7GRvSRPZrlxlV2a7/By7vUd57riFanY7l/xIv0Jb3K7wXn
WkZQ/gQo8oll85hYqdetnkahrbl1+t6j2MvUqRFRWyDkvRMPj7e3MfjdrJreQv9R
iZuyWKiZilkTW6+crRXZH1ck8ULyAmuIjV7j6wQXYUh11/ZH4O/wXArA47qnlbH5
PyjdpaXUSrQDT749074Us/FKmuruCm2FyplwPBmrWSmSloG10hyCuIemqfqemqaq
UyvmgqBuRfvtpJmO1R2X6B1pfUYQOZVBelu1KUl40onnPgvZO9F/MdPxrpS5G+Th
w8QQd+i2IgRgNOViIZ0p74Ap/UEcctOJHPnQDmfwa0exgPPaW6IMdAEyZ+IjeWhl
9dA5LBS3J8nlJzJI2dK7
=FL4x
-----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