fastapi-logging
CommunityStructured JSON logs for FastAPI tracing.
Authoragusmdev
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This skill enables structured JSON logging with automatic correlation IDs for FastAPI applications, improving observability and traceability across requests.
Core Features & Use Cases
- Structured JSON log output with timestamp, level, logger, and correlation_id for easy analysis.
- CorrelationIdMiddleware to generate or propagate a unique request ID across services.
- Early boot configuration via setup_logging() to standardize logs before app startup.
- Usage in services can utilize get_logger(name) to emit context-rich logs.
Quick Start
Install dependencies (e.g., python3 -m pip install fastapi uvicorn python-json-logger) and add in your FastAPI app:
- Call setup_logging() before creating the FastAPI instance.
- Add CorrelationIdMiddleware to the app.
- Use get_logger to emit structured logs.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: fastapi-logging Download link: https://github.com/agusmdev/burntop/archive/main.zip#fastapi-logging Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.