Function arti::logging::setup_logging

source ·
pub fn setup_logging(
    config: &LoggingConfig,
    mistrust: &Mistrust,
    cli: Option<&str>
) -> Result<LogGuards>
Available on crate feature experimental-api only.
Expand description

Set up logging.

Note that the returned LogGuard must be dropped precisely when the program quits; they’re used to ensure that all the log messages are flushed.