Skip to main content

stream_startup_logs

Function stream_startup_logs 

Source
pub fn stream_startup_logs(
    daemon_id: &DaemonId,
    from: DateTime<Local>,
    job: Arc<ProgressJob>,
) -> (Sender<bool>, JoinHandle<()>)
Expand description

Stream startup logs for a daemon to a progress job in real-time.

Spawns a background tokio task that polls the daemon’s log store and calls job.println() for each new line. Returns a watch sender that stops the streaming when sent true.