Skip to main content

subscribe_logs

Function subscribe_logs 

Source
pub fn subscribe_logs() -> Option<Receiver<String>>
Expand description

Subscribe to the live process-log stream.

Returns a receiver that yields one formatted log line per emitted tracing event (the same text written to stderr), or None when init has not run yet. A receiver that falls behind the bounded ring drops the oldest lines rather than stalling the writer.