Function create_log_writers

Source
pub fn create_log_writers(
    local_rank: usize,
    log_channel: ChannelAddr,
    pid: u32,
) -> Result<(Box<dyn AsyncWrite + Send + Unpin + 'static>, Box<dyn AsyncWrite + Send + Unpin + 'static>), Error>
Expand description

Helper function to create stdout and stderr LogWriter instances

§Arguments

  • log_channel - The unix channel for the writer to stream logs to
  • pid - The process ID of the process

§Returns

A tuple of boxed writers for stdout and stderr