-
Hi! Firstly, thanks for your amazing work! I have a code which writes to stdout and to files. let log_file_appender = tracing_appender::rolling::hourly("./logs", "sero.log");
let (log_file_appender, log_file_guard) = tracing_appender::non_blocking(log_file_appender);
let stdout_log = tracing_subscriber::fmt::layer().compact();
let subscriber = tracing_subscriber::Registry::default()
.with(stdout_log)
.with(Layer::new().with_ansi(false).with_writer(log_file_appender))
.with(tracing_subscriber::EnvFilter::from_default_env());
tracing::subscriber::set_global_default(subscriber).ok(); The problem is that I have functions with Here is the output to file.
Could you please provide any information for disabling this or that is an issue? |
Beta Was this translation helpful? Give feedback.
Answered by
clowzed
Jun 21, 2024
Replies: 1 comment
-
Adding |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
clowzed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Adding
with_ansi(false)
forstdout_log
fixed this.