> On Nov 6, 2024, at 17:12, Mcalexander, Jon J. 
> <jonmcalexan...@wellsfargo.com.invalid> wrote:
> 
> Question kind people,
> 
> Is there ANY AsyncFileHandler property that can handle a MaxSize directive to 
> specify the size of the Catalina.out file for log rotation purposes? I see 
> that there appears to be a MaxDays, but we would like to rotate based on the 
> size of the log file.


If you’re running on a real operating system (ie, not Windows), look at the 
description for CATALINA_OUT_CMD in the catalina.sh file along with the man 
page for the Apache rotatelogs utility. (This appears to be installed by 
default on macOS and is included in the apache2-utils package on at least 
Ubuntu-based systems.) There is an optional filesize parameter for rotatelogs 
which should do what you want.

If you are on Windows, there’s always WSL...

  - Chuck


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to