Skip to main content

init_batch_logging

Function init_batch_logging 

Source
pub fn init_batch_logging(context: &str) -> Option<WorkerGuard>
Expand description

Initialize logging for non-interactive/batch contexts.

Uses a simpler configuration: file logging + stderr (not stdout) so that machine-readable stdout output (JSON) is not polluted with log lines.