Skip to main content

Module rotation

Module rotation 

Source
Expand description

Log rotation policies: size, time, date, and count-based. Log rotation policies: size, time, date, and count-based.

Wrap a file sink with [RotatingFile] to enforce automatic rotation. On rotation, the current file is renamed with a timestamp suffix and a fresh file is opened at the original path.

Structsยง

RotatingFile
File writer that enforces a LogRotation policy.