From 1749757d1ff70d7fd3e0eb6c3589bf8644061cb8 Mon Sep 17 00:00:00 2001 From: taynpg Date: Fri, 10 Apr 2026 10:09:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=B1=E8=BF=99=E6=A0=B7=E5=90=A7=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + src/main.rs | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index ea8c4bf..c0ed7d0 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /target +/logs \ No newline at end of file diff --git a/src/main.rs b/src/main.rs index 0eda2ab..2d4f778 100644 --- a/src/main.rs +++ b/src/main.rs @@ -44,14 +44,15 @@ fn main() { .with( fmt::layer() .pretty() - .fmt_fields(format::PrettyFields::new()) - .with_line_number(false) - .with_file(false) + //.fmt_fields(format::PrettyFields::new()) + //.with_line_number(false) + //.with_file(false) .with_ansi(true) .with_timer(timer.clone()), ) .with( fmt::layer() + .pretty() .with_timer(timer.clone()) .with_ansi(false) .with_writer(non_block_writer),