'How to rotate tomcat stdout log file and stderr log file based on Size limit
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 file tomcat6-stdout, which makes it huge.
How to make rotate stdout and stderr files based on the size and timestamp (per day)?
Environment: Tomcat server 6.0.44, Windows XP. Immediate response really appreciable.
Solution 1:[1]
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
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | StackzOfZtuff |
