I am using Tomcat 9 to run application in Window 10 (Run as window service).
I would like to confirm how should I avoid the STDOUT or STDERR log file to be too big by any of two approach below:
- Create new STDOUT or STDERR log when size hit 1GB size
- Create new STDOUT or STDERR log daily
Is there any way to achieve on any approach above?