pub fn file_layer<S>(
config: FileLoggerConfig,
) -> Result<(impl Layer<S> + Send + Sync + 'static, WorkerGuard), FileLoggerError>where
S: Subscriber + for<'a> LookupSpan<'a>,Expand description
Builds an unfiltered tracing layer that writes records to a rolling
file under config.dir. Returns the layer plus a WorkerGuard the
caller must hold for the lifetime of the process — drop it at shutdown
so any buffered records flush before exit.
Most callers want layer or install instead, which apply the
cloud-controlled EnvFilter reload handle. Use this when you want a
plain file appender with no cloud filter integration.