MCPcopy Create free account
hub / github.com/ElementsProject/lightning / init

Function init

plugins/src/logging.rs:67–72  ·  view source on GitHub ↗

Initialize the logger starting a flusher to the passed in sink.

(out: Arc<Mutex<FramedWrite<O, JsonCodec>>>)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

start_writerFunction · 0.85
initMethod · 0.80

Tested by

no test coverage detected