From c64d84c3687804ec2c1b2a41cdfd727b1dd950fe Mon Sep 17 00:00:00 2001 From: "zhuxiujia@qq.com" Date: Thu, 28 Dec 2023 18:01:29 +0800 Subject: [PATCH] change detail --- Cargo.toml | 2 +- src/formats.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index d99dca6..ba52350 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,7 +6,7 @@ members = [ [package] name = "fast_log" -version = "1.6.11" +version = "1.6.12" description = "Rust async log High-performance asynchronous logging" readme = "Readme.md" authors = ["ce "] diff --git a/src/formats.rs b/src/formats.rs index c19f9be..49ee596 100644 --- a/src/formats.rs +++ b/src/formats.rs @@ -31,7 +31,7 @@ impl RecordFormat for FastLogFormat { }; if arg.level.to_level_filter() <= self.display_line_level { arg.formated = format!( - "{:27} {} {}:{} {}\n", + "{:27} [{}] [{}:{}] {}\n", &now, arg.level, arg.file, @@ -39,7 +39,7 @@ impl RecordFormat for FastLogFormat { arg.args, ); } else { - arg.formated = format!("{:27} {} - {}\n", &now, arg.level, arg.args); + arg.formated = format!("{:27} [{}] {}\n", &now, arg.level, arg.args); } } Command::CommandExit => {}