title: How to configure Tomcat JULI logging to roll log files?
body: <p>I have a several webapps which use java.util.logging.  Tomcat 5.5 is configured to use the Juli logger so that each webapp has its own log file.  The problem is that Juli does not have properties for maximum file size and file count.  Using Juli the files will grow unbounded and only roll at the end of the day.  Also, an unlimited number of log files are retained.</p>
  
  <p>You can see the FileHandler properties on this page - <a href="http://tomcat.apache.org/tomcat-5.5-doc/logging.html" rel="noreferrer">Apache Tomcat 5.5 Documentation</a><br>
  There is no limit or count property (the following lines do nothing)<br>
  <code>org.apache.juli.FileHandler.limit=102400</code><br>
  <code>org.apache.juli.FileHandler.count=5</code></p>
  
  <p>Without changing the webapps is there a way to get unique log files for each application with some type of bounds on the log file sizes?</p>
  
  <p><strong>UPDATE:</strong>
  The solution I found was not use the Juli logger at all!
  <code>java.util.logging.FileHandler.limit=102400</code><br>
  <code>java.util.logging.FileHandler.count=5</code>  </p>
  
  <p>Thanks,</p>
  
  <p>Greg</p>