performance/throttle-fps-to-60

This commit is contained in:
Thilo Behnke
2022-07-09 18:24:50 +02:00
parent f1bf0729c3
commit 9646be4a68
3 changed files with 13 additions and 8 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ mod session;
pub async fn main() {
let compound_policy = Box::new(CompoundPolicy::new(Box::new(SizeTrigger::new(2u64.pow(20) * 10)), Box::new(DeleteRoller::new())));
let logfile = RollingFileAppender::builder()
.encoder(Box::new(PatternEncoder::new("{d(%Y-%m-%d %H:%M:%S%.f)} [{l}] - {m}\n")))
.encoder(Box::new(PatternEncoder::new("{d(%Y-%m-%d %H:%M:%S%.f)} [{l}] - [{M}:{L}] {m}\n")))
.append(true)
.build("log/output.log", compound_policy).unwrap();