This commit is contained in:
houseme
2025-05-29 21:15:45 +08:00
parent eefb2f8127
commit 545e5b2efb
+2 -2
View File
@@ -401,7 +401,7 @@ fn format_with_color(w: &mut dyn std::io::Write, now: &mut DeferredNow, record:
write!(
w,
"{} {} [{}] [{}:{}] [{} {}] {}\n",
"{} {} [{}] [{}:{}] [{}:{}] {}\n",
now.now().format("%Y-%m-%d %H:%M:%S%.6f"),
level_style.paint(level.to_string()),
Color::Magenta.paint(record.target()),
@@ -424,7 +424,7 @@ fn format_for_file(w: &mut dyn std::io::Write, now: &mut DeferredNow, record: &R
write!(
w,
"{} {} [{}] [{}:{}] [{} {}] {}\n",
"{} {} [{}] [{}:{}] [{}:{}] {}\n",
now.now().format("%Y-%m-%d %H:%M:%S%.6f"),
level.to_string(),
record.target(),