pub fn rotate(
        mut self,
        criterion: Criterion,
        naming: Naming,
        cleanup: Cleanup,
    ) -> FileLogWriterBuilder {
        self.o_rotation_config = Some(RotationConfig {
            criterion,
            naming,
            cleanup,
        });
        self.config.filename_config.use_timestamp = false;
        self
    }
/// Use rotation to prevent indefinite growth of log files.
///
/// By default, the log file is fixed while your program is running and will grow indefinitely.
/// With this option being used, when the log file reaches the specified criterion,
/// the file will be closed and a new file will be opened.
///
/// Note that also the filename pattern changes:
///
/// - by default, no timestamp is added to the filename
/// - the logs are always written to a file with infix `_rCURRENT`
/// - when the rotation criterion is fulfilled, it is closed and renamed to a file
///   with another infix (see `Naming`),
///   and then the logging continues again to the (fresh) file with infix `_rCURRENT`.
///
/// Example:
///
/// After some logging with your program `my_prog` and rotation with `Naming::Numbers`,
/// you will find files like
///
/// ```text
/// my_prog_r00000.log
/// my_prog_r00001.log
/// my_prog_r00002.log
/// my_prog_rCURRENT.log
/// ```
///
/// The cleanup parameter allows defining the strategy for dealing with older files.
/// See [Cleanup](enum.Cleanup.html) for details.
Use rotation to prevent indefinite growth of log files.
By default, the log file is fixed while your program is running and will grow indefinitely.
With this option being used, when the log file reaches the specified criterion,
the file will be closed and a new file will be opened.

Note that also the filename pattern changes.

by default, no timestamp is added to the filename
the logs are always written to a file with infix `_rCURRENT`
when the rotation criterion is fulfilled, it is closed and renamed to a file
with another infix ,
and then the logging continues again to the (fresh) file with infix `_rCURRENT`.



After some logging with your program `my_prog` and rotation with `Naming::Numbers`,
you will find files like



The cleanup parameter allows defining the strategy for dealing with older files.
Use rotation to prevent indefinite growth of log files . By default the log file is fixed while your program is running and will grow indefinitely . With this option being used when the log file reaches the specified criterion the file will be closed and a new file will be opened . Note that also the filename pattern changes . by default no timestamp is added to the filename the logs are always written to a file with infix ` _rCURRENT ` when the rotation criterion is fulfilled it is closed and renamed to a file with another infix and then the logging continues again to the ( fresh ) file with infix ` _rCURRENT ` . After some logging with your program ` my_prog ` and rotation with ` Naming :: Numbers ` you will find files like The cleanup parameter allows defining the strategy for dealing with older files .
pub fn rotate(
        mut self,
        criterion: Criterion,
        naming: Naming,
        cleanup: Cleanup,
    ) -> FileLogWriterBuilder {
        self.o_rotation_config = Some(RotationConfig {
            criterion,
            naming,
            cleanup,
        });
        self.config.filename_config.use_timestamp = false;
        self
    }
pub fn rotate ( mut self , criterion : Criterion , naming : Naming , cleanup : Cleanup , ) -> FileLogWriterBuilder { self . o_rotation_config = Some ( RotationConfig { criterion , naming , cleanup , } ) ; self . config . filename_config . use_timestamp = false ; self }
Use rotation to prevent indefinite growth of log files.
Use rotation to prevent indefinite growth of log files .
mut self
criterion
Criterion
naming
Naming
cleanup
Cleanup
mut self
criterion
Criterion
naming
Naming
cleanup
Cleanup