Files
ALwrity/backend/logging_config.py
ajaysi 1a2ec68095 Enhance logging with exception handlers and context tracking
- Add InterceptHandler to route stdlib logging to Loguru
- Add _patch_record_context for request/job/user ID tracking
- Add _uncaught_exception_hook to capture top-level exceptions
- Add _asyncio_exception_handler for asyncio task exceptions
- Add _register_global_exception_handlers to register all hooks
- Add _configure_uvicorn_loggers for unified uvicorn logging
- Improve log format with contextual fields (req, job, user)
2026-03-22 10:59:46 +05:30

7.2 KiB