Logging System

Enhanced logging providing complete visibility into orchestrator operations.

Log File

Location: ~/py/envoy/cron.log

Format: [YYYY-MM-DD HH:MM:SS] LEVEL Message

Key Log Patterns

LLM Context: Shows what's in context before each call - note names, email counts, working note size

LLM Response: Shows status (gathering/complete/escalate) and reasoning

Action Execution: Shows operation counts and per-item success/failure

Enhanced Features (Added 2026-02-12)

• Action summaries showing count before operations

• Per-item logging for each email moved/deleted

• Warning messages when operations skip items

• 2-space indentation for readability

Debug Commands

Check last run: tail -100 ~/py/envoy/cron.log

Find specific email: grep "Message-ID: <id>" ~/py/envoy/cron.log

Check actions: grep -A 20 "Status is 'complete'" ~/py/envoy/cron.log | tail -30

Find errors: grep -E "ERROR|WARNING" ~/py/envoy/cron.log | tail -20

version1
created2026-02-12