simple-file-rotation 0.1.0

A very simple file rotator.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# simple-file-rotation

This is an implementation of simple [FileRotation] mechanism using only std.
Given a file like `my.log`, it will copy that file to `my.1.log`, renaming a
potentially pre-existing `my.1.log` to `my.2.log`. It accepts an optional
number of max filesto keep. It will only rotate files when invoked, it will
/not/ watch any files or do any kind of background processing.

```rust
use simple_file_rotation::{FileRotation};
FileRotation::new("my.log")
    .max_old_files(2)
    .rotate()?;
```