From c587c387f8d49fc176241f156e5f622a9c1e16c9 Mon Sep 17 00:00:00 2001 From: Erlend Langseth <3rlendhl@gmail.com> Date: Sat, 14 May 2022 11:28:23 +0200 Subject: [PATCH] Update README examples --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f6cdf67..3979ee8 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ use file_rotate::{FileRotate, ContentLimit, suffix::AppendCount}; use std::{fs, io::Write, path::PathBuf}; fn main() { - let mut log = FileRotate::new("logs/log", AppendCount::new(2), ContentLimit::Lines(3)); + let mut log = FileRotate::new("logs/log", AppendCount::new(2), ContentLimit::Lines(3), None); // Write a bunch of lines writeln!(log, "Line 1: Hello World!"); @@ -48,6 +48,7 @@ let mut log = FileRotate::new( "logs/log", AppendTimestamp::default(FileLimit::MaxFiles(3)), ContentLimit::Lines(3), + None, ); // Write a bunch of lines