Skip to content

Commit

Permalink
up memmap2 = "0.9.0"
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuxiujia committed Oct 20, 2023
1 parent 09375ef commit 29fb5b8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 39 deletions.
5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ members = [

[package]
name = "fast_log"
version = "1.6.8"
version = "1.6.9"
description = "Rust async log High-performance asynchronous logging"
readme = "Readme.md"
authors = ["ce <zhuxiujia@qq.com>"]
Expand Down Expand Up @@ -35,4 +35,5 @@ parking_lot = "0.12"
zip = { version = "0.6", optional = true }
lz4_flex = { version = "0.11", optional = true }
flate2 = { version = "1.0", optional = true}
memmap2 = {version = "0.7.1", optional = true}
memmap2 = {version = "0.9.0", optional = true}

33 changes: 0 additions & 33 deletions benches/log_mmap.rs

This file was deleted.

4 changes: 2 additions & 2 deletions example/src/split_log_mmap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ fn main() {
Config::new()
.chan_len(Some(100000))
.console()
.split::<MmapFile, LogPacker>(
.split::<MmapFile, KeepType, LogPacker>(
"target/logs/temp.log",
LogSize::MB(1),
KeepType::All,
LogPacker {},
),
)
.unwrap();
.unwrap();
for _ in 0..40000 {
log::info!("Commencing yak shaving");
}
Expand Down
3 changes: 1 addition & 2 deletions src/formats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ impl RecordFormat for FastLogFormat {
fastdate::DateTime::from(arg.now).set_offset(fastdate::offset_sec())
}
TimeType::Utc => fastdate::DateTime::from(arg.now),
}
.to_string();
};
if arg.level.to_level_filter() <= self.display_line_level {
arg.formated = format!(
"{:27} {} {}:{} {}\n",
Expand Down

0 comments on commit 29fb5b8

Please sign in to comment.