Google

Locations of visitors to this page

Hosted by:
SourceForge

wrapper.logfile.maxfiles Property
wrapper.logfile.maxfiles Property
Configuration Property Overview
wrapper.logfile.maxfiles

When log file rolling is enabled, old log files will be renamed by replacing their ROLLNUM token with an integer or by appending that integer to the end of the file. Larger indices are older log files. The maximum number of rolled log files can be set using this property. The default value, 0, implies no limit on the number of files. If this number is reduced from say 10 to 5, the extra 5 files will not be deleted, new log files will only be rolled within the first 5 indices.

When the wrapper.logfile.rollmode is DATE, new log files will be created for each new log by replacing the YYYYMMDD token with the appropriate date. This property defines the maximum number of past log files that will be maintained. A value of 0 indicates no limit. Unlike the case with rolled files above, all files over the specified limit will be deleted. Files are sorted by name with the most recent files preserved.

This property is ignored if wrapper.logfile.maxsize is 0 or the wrapper.logfile.rollmode is NONE.

Example:
wrapper.logfile.maxfiles=10


User Comments

If you notice something that is incorrect, missing, or simply feel that some part of this page could be explained better, feel free to log in and add a comment. You will need to register before you can log on.

Email:
Password:
by David Hayes (2006/06/27 00:28:26 JST from 66.170.97.122)
Gravatar

Just to clarify this for others. If you set:
wrapper.logfile.maxfiles=10
You will get 1 main logfile, and up to 10 "rolled" files. The maxfiles doesn't mean 10 files total, but a maximum of 10 older files, plus the main.

I was a little alarmed at first before I found this out, so just to be aware!

last modified: