diff --git a/src/sinks/logs/setup.rs b/src/sinks/logs/setup.rs index 42480c67..f9b5afbc 100644 --- a/src/sinks/logs/setup.rs +++ b/src/sinks/logs/setup.rs @@ -1,5 +1,5 @@ use file_rotate::{ - suffix::{FileLimit, TimestampSuffixScheme}, + suffix::{AppendTimestamp, FileLimit}, ContentLimit, FileRotate, }; use std::{io::Write, path::PathBuf, str::FromStr}; @@ -37,7 +37,7 @@ fn build_witer(config: &Config) -> Result { None => std::env::current_dir()?, }; - let suffix_scheme = TimestampSuffixScheme::default(FileLimit::MaxFiles( + let suffix_scheme = AppendTimestamp::default(FileLimit::MaxFiles( config.max_total_files.unwrap_or(DEFAULT_MAX_TOTAL_FILES), ));