Skip to main content

Monitoring

Log Format

Configure in config.yaml:

log_level: "info"     # debug, info, warning, error
log_format: "json" # json (production) or text (development)

JSON output example:

{
"timestamp": "2025-01-19T10:30:00Z",
"level": "INFO",
"logger": "beam_agent.core.agent",
"message": "Processing execution",
"execution_id": "exec-123",
"node_id": "node-scan-001"
}

Key Log Events

EventLevelMeaning
Starting queue pollingINFOAgent is running and listening
Received N messagesINFOMessages fetched from queue
Processing execution with tool: XINFOTool execution started
Successfully processed executionINFOTool completed, output uploaded
Failed to process executionERRORTool failed, check error message
Tool 'X' not registeredERRORTool name in workflow doesn't match any registered tool
Published completion eventINFOResult sent back to NINA

Agent Statistics

Logged on shutdown:

Messages processed: 150
Messages failed: 3
Tools executed: 150
Average execution duration: 2.5 seconds

Debugging

Set log_level: "debug" temporarily to see detailed execution traces. Remember to revert to info after.

Next Steps