I am really fed up in not being able to solve the tomcat log rotation problem in one our windows server after putting countless hours in it and after trying out various solutions.

* **Environment:** Java 1.6x, Tomcat 6 (running as service), log4j 1.2, Server 2003 32-bit

Methods tried so far:

1. `cronolog` didn't work, no files where being created after setting it up.
2. Managed to configure `log4j` with `DailyRollingFile` appender globally for Tomcat, the log files are being created without extension and are not being rotated.
3. Tried `DatedFileAppender` too, but didn't get much success.
4. Tried `log4jna` based `Windows Event Log appender` for log4j, there didn't get success

Please suggest an easy method to finish this task.