Logging Setup¶
Write Logs to a File¶
Useful in production or scheduled jobs where you want a persistent audit trail.
Or in code:
Colored Output for Development¶
Or via config:
Log Levels¶
| Level | Use When |
|---|---|
DEBUG |
Development — shows every step (loading, chunking, embedding, storing) |
INFO |
Production — shows ingestion stats, retrieval queries, warnings |
WARNING |
Minimal — only problems and skipped files |
ERROR |
Errors only |