Log Rotation using Log4j

Does this article still apply with Lucee 5.3.8.206?

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. https://lucee.daemonite.io/t/huge-lucee-folder-in-windows-2012/2631/16) and how they reference changing logging processing to use Log4j.

Hopefully someone can point me in the right direction.

Thanks,

Adam

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

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) ;