From a0ec0ff3de132313cde743b217354efd6867b20b Mon Sep 17 00:00:00 2001 From: Asuna Date: Tue, 8 Oct 2024 04:43:53 +0800 Subject: [PATCH] Bump benchmark dependency `fast_log` to v1.7.4 --- spdlog/Cargo.toml | 2 +- spdlog/benches/fast_log/3_rotating_daily_async.rs | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/spdlog/Cargo.toml b/spdlog/Cargo.toml index afc926a9..2b0ba210 100644 --- a/spdlog/Cargo.toml +++ b/spdlog/Cargo.toml @@ -79,7 +79,7 @@ log = "=0.4.21" slog = "=2.7.0" sloggers = "=2.2.0" log4rs = "=1.3.0" -fast_log = "=1.6.16" +fast_log = "=1.7.4" fern = "=0.6.2" flexi_logger = "=0.28.3" ftlog = "=0.2.14" diff --git a/spdlog/benches/fast_log/3_rotating_daily_async.rs b/spdlog/benches/fast_log/3_rotating_daily_async.rs index e084bc5a..3c359e1a 100644 --- a/spdlog/benches/fast_log/3_rotating_daily_async.rs +++ b/spdlog/benches/fast_log/3_rotating_daily_async.rs @@ -10,7 +10,10 @@ use std::time::Duration; use fast_log::{ config::Config, consts::LogSize, - plugin::{file_split::KeepType, packer::LogPacker}, + plugin::{ + file_split::{KeepType, Rolling, RollingType}, + packer::LogPacker, + }, }; use log::info; use test::Bencher; @@ -24,7 +27,7 @@ fn bench_4_rotating_daily_async(bencher: &mut Bencher) { .join("rotating_daily_async.log") .to_str() .unwrap(), - LogSize::EB(1), // There is no unlimited option, so we use a large size + Rolling::new(RollingType::BySize(LogSize::EB(1))), // There is no unlimited option, so we use a large size KeepType::KeepTime(Duration::from_secs(24 * 3600)), LogPacker {}, )