Skip to main content

init_with_file

Function init_with_file 

Source
pub fn init_with_file(log_dir: &Path, verbose: bool) -> WorkerGuard
Expand 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.