refactor: make init_global_logging() clean and add log_format (#4657)

refactor: refine the code logic of init_global_logging and add json output format
This commit is contained in:
zyy17
2024-09-04 11:04:51 +08:00
committed by GitHub
parent 8ca35a4a1a
commit 8453df1392
10 changed files with 191 additions and 94 deletions

View File

@@ -823,8 +823,8 @@ max_retry_times = 3
retry_delay = "500ms"
[logging]
enable_otlp_tracing = false
append_stdout = true
enable_otlp_tracing = false
[[region_engine]]
@@ -883,6 +883,7 @@ write_interval = "30s"
fn drop_lines_with_inconsistent_results(input: String) -> String {
let inconsistent_results = [
"dir =",
"log_format =",
"data_home =",
"bucket =",
"root =",