
en.help.task-logging-max-logfiles.html Maven / Gradle / Ivy
To Change the Limit on the Number of Rotated Log Files
When GlassFish Server rotates a log file, it creates a new, empty
file named server.log and renames the old file server.log_date, where date is the date
and time when the file was rotated.
By default, GlassFish Server limits the number of rotated log files to 10.
When this limit is reached, the oldest log file is deleted when
GlassFish Server next rotates a log file.
If necessary, you can change the limit on the number of rotated
log files. Any new limit that you set applies to rotated log files
for both access logging and the server log.
- Set the com.sun.enterprise.server.logging.max_history_files system property to the maximum number of rotated log
files to keep.
For information about how to set a system property, see To Manage System Properties.
The behavior of the com.sun.enterprise.server.logging.max_history_files system property is as follows:
If the property is not set, GlassFish Server keeps a maximum of 10 rotated log files.
If the property is set to an invalid number or null, GlassFish Server keeps a maximum of 10 rotated log files.
If the property is set to 0, GlassFish Server keeps no rotated log files.
See Also
-
-
-
-
-
Copyright © 2010, Oracle and/or its affiliates. All rights reserved. Legal Notices