How to rotate tomcat stdout log file and stderr log file based on Size limit
10,866
Limit the filesize: Djava.util.logging.FileHandler.limit=25000000
More info can be found here: https://tomcat.apache.org/tomcat-6.0-doc/logging.html
Author by
Raj
Updated on June 07, 2022Comments
-
Raj almost 2 years
Does anybody have idea about below case. How can I make tomcat logs rotate based on the size and time stamp? I have tried all scenarios by changing
logging.properties
file under tomcat/conf but I didn't get any luck.In the web application we used lots of
System.out.println
statements to print the log in a log filetomcat6-stdout
, which makes it huge.How to make rotate
stdout
andstderr
files based on the size and timestamp (per day)?Environment: Tomcat server 6.0.44, Windows XP. Immediate response really appreciable.