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


On 5/18/16 7:41 AM, Yuval Schwartz wrote:
> Hello,
> 
> I am currently running a web application:
> 
> Tomcat: 8.0.22 JDK: 1.8.0_05 Server: Amazon Linux AMI
> 
> At the moment, I am simply using the default logging. catalina.out 
> catalina.[date].log localhost.[date].log host-manager.[date].log 
> localhost_access_log.[date].log manager.[date].log
> 
> These log files build up in my {catalina.base}/logs directory.
> 
> At the moment it's not a problem but eventually I would like to
> clear these log files and store them somewhere (maybe send them to
> my email).
> 
> Does anyone have any solutions for what to do with these log
> files? I looked into rotating them with logrotate but I read in a
> few places that tomcat automatically rotates its log files and that
> I shouldn't override this.
> 
> I will eventually probably implement more thorough logging for my 
> application. But for the meantime, what should I do so that I don't
> have a ton of log files in my logs directory? Any way to
> automatically delete and email all log files with dates older than
> one month? Should I implement logrotate on catalina.out since this
> does not get dated?
> 
> Thank you

Does this help?
http://wiki.apache.org/tomcat/HowTo#How_do_I_rotate_catalina.out.3F

- -chris
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlc+OQkACgkQ9CaO5/Lv0PBsAACgpWGeCwhSkiTa7m8MYC7KMCae
N6EAn3moj/uRXdDHNfG9a1w/3/ypB7O4
=y7BX
-----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