Function arti::logging::logfile_layers

source ·
fn logfile_layers<S>(
    config: &LoggingConfig,
    mistrust: &Mistrust
) -> Result<(impl Layer<S>, Vec<WorkerGuard>)>
where S: Subscriber + for<'span> LookupSpan<'span> + Send + Sync,
Expand description

Try to construct a tracing [Layer] for all of the configured logfiles.

On success, return that layer along with a list of [WorkerGuard]s that need to be dropped when the program exits.