How To Rotate The Oracle GlassFish Server Log When Either Time Limit or Size Limit is reached, Whichever Happens First?
(Doc ID 1431842.1)
Last updated on JUNE 20, 2024
Applies to:
Oracle GlassFish Server - Version 2.1.1 and laterInformation in this document applies to any platform.
Goal
As per the GlassFish Server 2.1.1 documentation, if the value of "log-rotation-timelimit-in-minutes" is greater than zero, then "log-rotation-timelimit-in-minutes" takes precedence over "log-rotation-limit-in-bytes".
http://docs.oracle.com/cd/E19879-01/821-0183/abhdl/index.html
******************************************************************************
log-rotation-limit-in-bytes
(optional) Log files are rotated when the file size reaches the specified limit.
log-rotation-timelimit-in-minutes
(optional) Enables time-based log rotation. The valid range is 60 minutes (1 hour) to 14400 minutes (10*24*60 minutes or 10 days).
If the value is zero, the files are rotated based on the size specified in log-rotation-limit-in-bytes. If the value is greater than zero, log-rotation-timelimit-in-minutes takes precedence over log-rotation-limit-in-bytes .
******************************************************************************
Is there a way to rotate the Oracle GlassFish Server 2.1.1 log when either Time Limit or Size Limit is reached, whichever happens first?
Solution
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Goal |
Solution |