title: How can I install cronolog in Tomcat for daily log rotate?
body: <p>When i wanted to lotate log daily, I was editing catalina.sh in other to redirect log to cronolog.</p>
  
  <p>I think it is bad solution because catalina.sh file is executable shell file.</p>
  
  <p>Can I config it using editing properties or any files in conf directory ?</p>
  
  <p>Is there another good solution?</p>
  
  <p>new:</p>
  
  <pre>
        org.apache.catalina.startup.Bootstrap "$@" start 2>&1 \
        | cronolog "$CATALINA_BASE"/logs/catalina.
  %Y-%m-%d.out >> /dev/null &
  </pre>
  
  <p>old:</p>
  
  <pre>
        org.apache.catalina.startup.Bootstrap "$@" start \
        >> "$CATALINA_BASE"/logs/catalina.out 2>&1 &
  </pre>