|
@@ -69,11 +69,12 @@ pub fn setup_logging() -> Result<Vec<WorkerGuard>, Box<dyn std::error::Error>> {
|
|
|
.with_writer(non_blocking_stdout_writer)
|
|
.with_writer(non_blocking_stdout_writer)
|
|
|
.with_timer(timer)
|
|
.with_timer(timer)
|
|
|
.with_target(true)
|
|
.with_target(true)
|
|
|
- .with_file(true)
|
|
|
|
|
- .with_line_number(true)
|
|
|
|
|
- .with_thread_ids(true)
|
|
|
|
|
|
|
+ // .with_file(true)
|
|
|
|
|
+ // .with_line_number(true)
|
|
|
|
|
+ // .with_thread_ids(true)
|
|
|
.with_span_events(FmtSpan::CLOSE)
|
|
.with_span_events(FmtSpan::CLOSE)
|
|
|
- .pretty();
|
|
|
|
|
|
|
+ // .pretty()
|
|
|
|
|
+ ;
|
|
|
|
|
|
|
|
// 5. 组合图层并初始化
|
|
// 5. 组合图层并初始化
|
|
|
Registry::default()
|
|
Registry::default()
|