pub fn init_with_file(log_dir: &Path, verbose: bool) -> WorkerGuardExpand description
Initialize dual-output logging: human-readable to stderr, JSON to a file.
Used by oven on. The returned WorkerGuard must be held until shutdown
to ensure the background writer thread flushes and stops cleanly.