Skip to content

Commit

Permalink
Bump benchmark dependency fast_log to v1.7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
SpriteOvO committed Oct 7, 2024
1 parent 6c930d7 commit a0ec0ff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion spdlog/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
7 changes: 5 additions & 2 deletions spdlog/benches/fast_log/3_rotating_daily_async.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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 {},
)
Expand Down

0 comments on commit a0ec0ff

Please sign in to comment.