Module file_rotate::suffix

source ·
Expand description

Suffix schemes determine the suffix of rotated files

This behaviour is fully extensible through the SuffixScheme trait, and two behaviours are provided: AppendCount and AppendTimestamp


  • Append a number when rotating the file. The greater the number, the older. The oldest files are deleted.
  • Append current timestamp as suffix when rotating files. If the timestamp already exists, an additional number is appended.
  • Structured representation of the suffixes of AppendTimestamp.



  • Representation of a suffix Ord + PartialOrd: sort by age of the suffix. Most recent first (smallest).
  • How to move files: How to rename, when to delete.