fn logfile_layers<S>(
config: &LoggingConfig,
mistrust: &Mistrust,
path_resolver: &CfgPathResolver,
) -> Result<(impl Layer<S>, Vec<WorkerGuard>)>
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.