pub fn setup_tracing(
work_dir: &Path,
logging_config: &LoggingConfig,
) -> Result<Option<WorkerGuard>>Expand description
Sets up and initializes a tracing subscriber with custom log filtering. Logs can be configured to output to stdout only, file only, or both. Returns a guard that must be kept alive and properly dropped on shutdown.