Improve settings #168

Merged
schmelczer merged 14 commits from asch/explore into main 2025-11-19 19:53:10 +00:00
Showing only changes of commit 4f477cffa0 - Show all commits

Use stderr for logging

Andras Schmelczer 2025-11-18 21:18:20 +00:00

View file

@ -92,9 +92,9 @@ fn set_up_logging(
.with_line_number(is_debug_mode)
.compact();
let stdout_layer = tracing_subscriber::fmt::layer()
let stderr_layer = tracing_subscriber::fmt::layer()
.with_ansi(use_colors)
.with_writer(std::io::stdout)
.with_writer(std::io::stderr)
.event_format(format.clone());
let file_layer = tracing_subscriber::fmt::layer()
@ -104,7 +104,7 @@ fn set_up_logging(
tracing_subscriber::registry()
.with(env_filter)
.with(stdout_layer)
.with(stderr_layer)
.with(file_layer)
.try_init()
.context("Failed to initialise tracing")