LogExpireAction
 
Type

String

Default

Datestamp

Required

no

Configuration section

Logging and/or LogStream

If you configure this parameter in the Logging section and a LogStream section, the setting in the LogStream section takes precedence for the specified log stream.

Description

Determines how log files are handled when they exceed the maximum size. Enter one of the following to determine how log files are handled when they exceed the MaxLogSizeKBs size:

Compress
The log file's name is appended with a time stamp, compressed and saved in the log directory. By default, this is a Zip file. Use the LogCompressionMode parameter to specify another compression format.

Consecutive
The log file's name is appended with a number and saved in the log directory. When the next log file reaches its LogMaxSizeKBs size, it is appended with the next consecutive number.

Datestamp
The log file's name is appended with a time stamp and saved in the log directory.

Previous
The log file's name is appended with .previous and saved in the log directory. Every time a log file reaches its LogMaxSizeKBs size, it is given the same postfix so it overwrites the old log file.

Day
Only one log file is created per day and is appended with the current time stamp. Log files are archived once they reach the LogMaxSizeKBs size.

Note: The LogMaxSizeKBs parameter takes precedence over the LogExpireAction parameter. Therefore, if you set LogExpireAction to Day, and the value for LogMaxSizeKBs results in more than one log file, multiple log files will be generated per day.

 
Example

LogExpireAction=Compress

See also

LogCompressionMode

LogFile

LogMaxSizeKBs