I know that Tomcat uses JULI logger. Does it possible to set file size limit?
I see that files are rolled in some way, but where this parameter is set I cannot figure.
I know that Tomcat uses JULI logger. Does it possible to set file size
Share
Logging is configured in
/conf/logging.propertiesin your tomcat root.JULI filehandler rolls files each day, as described in javadoc of ‘rotatable’ property here: http://tomcat.apache.org/tomcat-6.0-doc/api/org/apache/juli/FileHandler.html .
I don’t think it’s possible to set a size limit for log file in JULI, but you can switch the logging framework used to Log4J (description how to do so can be found here: http://tomcat.apache.org/tomcat-6.0-doc/logging.html) and then you can use RollingFileAppender which has an option for maximum file size.