Specifying rollover thresholds
The
max-size stanza
entry specifies the maximum
size to which each of the HTTP log files can grow and has the following
default value in bytes: [logging]
max-size = 2000000When a log file reaches its rollover
threshold:
- The existing file is backed up to a file of the same name. The file name is appended with the current date and timestamp.
- A new log file is started.
The various possible
max-size values
are interpreted
as follows: - If the
max-sizevalue is less than zero (< 0), a new log file is created:- With each invocation of the logging process.
- Every 24 hours from that instance.
- If the
max-sizevalue is equal to zero (= 0), no rollover is completed and the log file grows indefinitely. If a log file exists, new data is appended to it. - If the
max-sizevalue is greater than zero (> 0), a rollover is completed when a log file reaches the configured threshold value. If a log file exists at startup, new data is appended to it.