Skip to main content

setup_logging

Function setup_logging 

Source
pub fn setup_logging(
    name: Option<&str>,
    error_capture: Option<Arc<Mutex<Vec<BenchAgentError>>>>,
) -> Result<()>
Expand description

Sets up the logging infrastructure for the application. This includes:

  • File-based logging with JSON formatting (DEBUG level)
  • No console output (all logs go to files only)
  • Optional Langfuse integration (DEBUG level)
  • Optional error capture layer for benchmarking