pub fn install(
config: FileLoggerConfig,
) -> Result<(LogCollector, WorkerGuard), InstallError>Expand description
Installs a global tracing subscriber whose only output is a rolling
file appender under config.dir. The level filter starts at off; the
cloud must push a SetLogLevel for any events to be captured.
Returns the LogCollector to hand to crate::ClientHost so it can
apply runtime overrides, and a WorkerGuard the caller must hold for
the lifetime of the process so the non-blocking writer flushes on exit.
Call exactly once at process start. For composition with other layers,
use layer.