Skip to main content

init_logging

Function init_logging 

Source
pub fn init_logging(
    json: bool,
    chan_size: usize,
    name: &str,
    version: &str,
) -> Result<()>
Expand description

Initialize logging.

chan_size is the slog-async buffer depth; see DEFAULT_LOG_CHAN_SIZE. A value of 0 is treated as the default: crossbeam would otherwise give us a rendezvous channel, blocking every logging call until the consumer picks the record up.