feat: roll over logs daily

This commit is contained in:
Jamin M
2023-06-23 10:03:01 -05:00
committed by Greg Heartsfield
parent f4beb884b3
commit 9237eed735
+1 -1
View File
@@ -42,7 +42,7 @@ fn main() {
Some(p) => p.as_str(),
None => "relay",
};
let file_appender = tracing_appender::rolling::hourly(path, prefix);
let file_appender = tracing_appender::rolling::daily(path, prefix);
let (non_blocking, guard) = tracing_appender::non_blocking(file_appender);
let filter = EnvFilter::from_default_env();
// assign to a variable that is not dropped till the program ends