pdf-quiz-generator/backend/app/routers
Daniel d0518d0737 Add comprehensive structured logging with Loki + Grafana
Backend logging:
- Centralized JSON logging config with LOG_LEVEL env var
- Request logging middleware: user, method, path, status, duration, request_id
- Fixed all 9 silent except:pass blocks to log warnings with tracebacks
- Celery workers use same structured JSON format

Infrastructure:
- Loki 3.3.2 for log storage (30-day retention)
- Promtail 3.3.2 for Docker container log shipping
- Grafana 10.3.1 with auto-provisioned Loki datasource
- Grafana on port 3002 (admin/pedshub_grafana)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-11 02:53:54 +02:00
..
__init__.py Initial commit: PDF Quiz Generator app 2026-03-30 20:04:53 +00:00
admin.py Add OIDC/SSO login, reminder fixes, user notification settings 2026-04-10 04:10:15 +02:00
attempts.py Add comprehensive structured logging with Loki + Grafana 2026-04-11 02:53:54 +02:00
auth.py Add OIDC/SSO login, reminder fixes, user notification settings 2026-04-10 04:10:15 +02:00
categories.py Major: categories, question bank, security fixes, mobile layout, UX improvements 2026-03-31 20:08:05 +02:00
contact.py Tag filtering, multi-category, bug fixes, image validation, docs 2026-04-04 22:48:26 +02:00
courses.py Add comprehensive structured logging with Loki + Grafana 2026-04-11 02:53:54 +02:00
documents.py Tag filtering, multi-category, bug fixes, image validation, docs 2026-04-04 22:48:26 +02:00
favorites.py Add switchable embedding model, Polly toggle, job cancellation, and UI fixes 2026-04-03 20:44:11 +02:00
flashcards.py Fix shared decks route ordering, fix corrupted middot character 2026-04-04 23:45:13 +02:00
nextcloud.py Security hardening, async TeachChat, rate limit UX, unthrottle 2026-04-04 01:09:42 +02:00
question_categories.py Fix question bank: select-all, bulk category, page size, category delete 2026-04-01 02:55:25 +02:00
questions.py Add comprehensive structured logging with Loki + Grafana 2026-04-11 02:53:54 +02:00
quizzes.py Decouple course quizzes, replace passlib, add security hardening 2026-04-06 21:31:05 +02:00
tags.py Tag filtering, multi-category, bug fixes, image validation, docs 2026-04-04 22:48:26 +02:00
teach.py Workers x4, follow-up suggestions, singleton lock, admin error details 2026-04-04 01:27:03 +02:00
tts.py Security hardening, async TeachChat, rate limit UX, unthrottle 2026-04-04 01:09:42 +02:00