title: How to rotate the tomcat localhost log?
body: <p>I am using tomcat 6x in a Linux system. It prints a localhost log file like <code>localhost.2011-06-07</code>, <code>localhost.2011-06-08</code> on a daily basis. I want to rotate the localhost when it reaches 1MB.</p>
  
  <p>I can rotate log files in log4j for my web apps. But this localhost log file of tomcat, I couldn't get it to rotate. Has any got a solution other than using logrotate?</p>