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

Vivek,

Vivek Mohan wrote:
> Is there a way to delete tomcat logs which are "older" than 5 days?

You could configure Tomcat to use log4j instead of juli and use a
DailyRollingFileAppender -- it will generate a new file every day and
you can simply delete the ones that are several days behind whenever you
want.

(Unfortunately, DailyRollingFileAppender doesn't inherit from
RollingFileAppender which includes a "max backup index" setting and will
automatically clean up after old log files).

- -chris

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

iD8DBQFGzIF19CaO5/Lv0PARAg39AKDCPdqZuNlmqfsZDvVhbwDacsnU1ACdEY82
frNhYK+LhiH/3tkH1zAQZwE=
=DVAL
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to