diff --git a/Cargo.toml b/Cargo.toml index f6683d2..a3e23a7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "file-rotate" -version = "0.7.4" +version = "0.7.5" authors = ["Kevin Robert Stravers ", "Erlend Langseth <3rlendhl@gmail.com>"] edition = "2018" description = "Log rotation for files" diff --git a/README.md b/README.md index 50adcc8..98edd92 100644 --- a/README.md +++ b/README.md @@ -16,11 +16,11 @@ Following are some supplementary examples to get started. ## Basic example ```rust -use file_rotate::{FileRotate, ContentLimit, suffix::AppendCount}; +use file_rotate::{FileRotate, ContentLimit, compression::Compression, suffix::AppendCount}; use std::{fs, io::Write, path::PathBuf}; fn main() { - let mut log = FileRotate::new("logs/log", AppendCount::new(2), ContentLimit::Lines(3), None); + let mut log = FileRotate::new("logs/log", AppendCount::new(2), ContentLimit::Lines(3), Compression::None, None); // Write a bunch of lines writeln!(log, "Line 1: Hello World!"); @@ -51,6 +51,7 @@ let mut log = FileRotate::new( "logs/log", AppendTimestamp::default(FileLimit::MaxFiles(3)), ContentLimit::Lines(3), + Compression::None, None, ); @@ -95,4 +96,3 @@ This project is licensed under the [MIT license]. Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in file-rotate by you, shall be licensed as MIT, without any additional terms or conditions. -