Use the rotatelogs utility to rotate the files to a new file name at a specified time interval. By default the use of rotatelogs is turned on. To turn rotatelogs off or change the frequency add/modify the [APP_HOME]/depconfig/properties/external/config.yml file like the example below:
apache:
log:
rotatelogs: "On"
rotateinterval: 86400
-
rotatelogs - enable / disable automatic log rotation – Valid values: On or Off
-
rotateinterval - the interval in seconds for log rotation - default is 86400 (one day) - shortest interval that can be specified is 60 seconds
-
Next, change to directory [APP_HOME]/depconfig
-
For JBoss on Windows, run deploy.bat.
-
For JBoss on Linux, run deploy.sh