Initialize the logger starting a flusher to the passed in sink.
(out: Arc<Mutex<FramedWrite<O, JsonCodec>>>)
| 65 | |
| 66 | /// Initialize the logger starting a flusher to the passed in sink. |
| 67 | pub async fn init<O>(out: Arc<Mutex<FramedWrite<O, JsonCodec>>>) -> Result<(), anyhow::Error> |
| 68 | where |
| 69 | O: AsyncWrite + Send + Unpin + 'static, |
| 70 | { |
| 71 | return trace::init(out).context("initializing tracing logger"); |
| 72 | } |
| 73 | |
| 74 | mod trace { |
| 75 | use super::*; |
nothing calls this directly
no test coverage detected