Log Rotation using Log4j

Does this article still apply with Lucee

This article references Tomcat 7 where the current version of Lucee uses Tomcat 9.0.46. I’ve tried to follow the install documents but I’m unable to locate any of the “Tomcat Extras” ( tomcat-juli.jar and tomcat-juli-adapters.jar) based on the documentation.

I’ve seen several forum articles related to the issue of large log files (ex. Huge lucee folder in windows 2012 - #16 by kabutotx) and how they reference changing logging processing to use Log4j.

Hopefully someone can point me in the right direction.



OS: Windows Server 2019
Java Version: 11.0.11 (AdoptOpenJDK) 64bit
Tomcat Version: Apache Tomcat/9.0.46
Lucee Version: Lucee

On Windows, the logs by default are \LuceeInstallRoot\Tomcat\Logs

You can either restart the service which restarts the logging by name
you can write a script to move the file

in autoit

FileMove"c:\lucee\tomcat*.log", “c:\archive-logs*.txt”, $FC_OVERWRITE) ;