How to rotate the tomcat localhost log?
问题 I am using tomcat 6x in a Linux system. It prints a localhost log file like localhost.2011-06-07 , localhost.2011-06-08 on a daily basis. I want to rotate the localhost when it reaches 1MB. 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? 回答1: Do you not want to use logrotate, or does your sys admin not allow you to? Given that restriction, I'm afraid (from what I have been