How can I disable logging in Tomcat 7?

Posted by WilliamMayor on Server Fault See other posts from Server Fault or by WilliamMayor
Published on 2011-03-27T22:07:11Z Indexed on 2011/11/13 17:55 UTC
Read the original article Hit count: 277

Filed under:
|

I have a Tomcat 7 server running in a VM that has very little disk space (20G).

Over the course of a few days Tomcat will fill the space with logging info (usually about 15G before it runs out).

I've tried turning down the log level (from INFO to SEVERE) in the logging.properties file, I've also tried sending the log info to /dev/null.

It doesn't seem to work as I still get a full log directory after no time at all.

Can I put a file size limit on the log files? Is something overriding the properties I'm setting?

Where can I find this information? My Google Fu just returns information about logging from within an application using JULI.

© Server Fault or respective owner

Related posts about tomcat

Related posts about logging