Skip to content

Commit c587c38

Browse files
committed
Update README examples
1 parent be183d4 commit c587c38

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use file_rotate::{FileRotate, ContentLimit, suffix::AppendCount};
1717
use std::{fs, io::Write, path::PathBuf};
1818

1919
fn main() {
20-
let mut log = FileRotate::new("logs/log", AppendCount::new(2), ContentLimit::Lines(3));
20+
let mut log = FileRotate::new("logs/log", AppendCount::new(2), ContentLimit::Lines(3), None);
2121

2222
// Write a bunch of lines
2323
writeln!(log, "Line 1: Hello World!");
@@ -48,6 +48,7 @@ let mut log = FileRotate::new(
4848
"logs/log",
4949
AppendTimestamp::default(FileLimit::MaxFiles(3)),
5050
ContentLimit::Lines(3),
51+
None,
5152
);
5253

5354
// Write a bunch of lines

0 commit comments

Comments
 (0)