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 and warnings. |
WARNING |
Minimal. Only problems and skipped files. |
ERROR |
Errors only |