-
Is it possible to have a custom writer and custom layer? tracing_subscriber::registry()
.with(LogLayerGeneric { tx_channel: log_tx })
.init();
let (non_blocking, _guard) = tracing_appender::non_blocking(LogWriter);
tracing_subscriber::fmt().with_writer(non_blocking).init(); |
Beta Was this translation helpful? Give feedback.
Answered by
hawkw
Mar 10, 2022
Replies: 1 comment
-
Try let (non_blocking, _guard) = tracing_appender::non_blocking(LogWriter);
tracing_subscriber::registry()
.with(LogLayerGeneric { tx_channel: log_tx })
.with(tracing_subscriber::fmt::layer().with_writer(non_blocking))
.init(); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
cong-or
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Try