title: How to rotate Tomcat Access Log file, by file size rather than by the date
body: <p>Presently my access log file (access_log.yyyy-MM-dd.log) is generating everyday(big size file) and keep on a accumulating day by day.
  I want's to rotate  Access Log files  by file size.</p>
  
  <p>I tried by :</p>
  
  <pre><code>&lt;Valve className="org.apache.catalina.valves.AccessLogValve"
           directory="${catalina.home}/../logs"  prefix="access_log." suffix=".txt"
           rotatable ="false"
           pattern="common" resolveHosts="false"/&gt;
  </code></pre>
  
  <p>But its not working for size,its generating only a single file and add's logs from all date in same file .
  How to made it rotate by size of log file? </p>