fastapi-logging
Installation
SKILL.md
FastAPI Logging & Correlation IDs
Overview
This skill covers setting up structured JSON logging with correlation ID middleware for request tracing across the application.
Create logging.py
Create src/app/logging.py:
import logging
import sys
from typing import Any
from pythonjsonlogger import jsonlogger
from app.config import settings