I'm really tired of not being able to solve the problem of tomcat log rotation on one of our window servers after it took less time and after testing various solutions.
Environment: Java 1.6x, Tomcat 6 (runs as a service), log4j 1.2, Server 2003 32-bit
The methods used.
1) cronolog did not work, without files created after its configuration.
2) To configure log4j using the DailyRollingFile application globally for tomcat, log files are created without an extension and do not rotate.
3) I tried DatedFileAppender too, but did not get much success.
4) Tried log4jna based on Windows Event Log appender for log4j, failed
Please suggest an easy way to complete this task.
source share