Thank you Chuck!

From: Chuck Caldarale <n82...@gmail.com>
Sent: Wednesday, November 6, 2024 6:22 PM
To: Tomcat Users List <users@tomcat.apache.org>
Subject: Re: Tomcat logging.properties AsyncFileHandler

> On Nov 6, 2024, at 17: 12, Mcalexander, Jon J. <jonmcalexander@ wellsfargo. 
> com. invalid> wrote: > > Question kind people, > > Is there ANY 
> AsyncFileHandler property that can handle a MaxSize directive to specify the 
> size




> On Nov 6, 2024, at 17:12, Mcalexander, Jon J. 
> <jonmcalexan...@wellsfargo.com.invalid<mailto: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<mailto:users-unsubscr...@tomcat.apache.org>

For additional commands, e-mail: 
users-h...@tomcat.apache.org<mailto:users-h...@tomcat.apache.org>


Reply via email to