voltwire-fastapi-logging
Logging utilities for FastAPI apps: request-context-enriching middleware.
Installation
pip install voltwire-fastapi-logging
Quickstart
from voltwire.fastapi.logging import setup_logging, DefaultLogSettings
setup_logging(DefaultLogSettings(enable_json=False, level="INFO"))
Add LoggingContextMiddleware to enrich every log entry within a request with a correlation
ID, method, and path:
from voltwire.fastapi.logging import LoggingContextMiddleware, DefaultLoggingMiddlewareSettings
app.add_middleware(LoggingContextMiddleware, settings=DefaultLoggingMiddlewareSettings())
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file voltwire_fastapi_logging-0.0.1.tar.gz.
File metadata
- Download URL: voltwire_fastapi_logging-0.0.1.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.9.24 {"installer":{"name":"uv","version":"0.9.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
be214106924257da80ff1b93c46c27e4eb9c1ac18666ab231d36299c29fad9c0
|
|
| MD5 |
5af2189c01fb7594b1cc0c385b8cc839
|
|
| BLAKE2b-256 |
9b38b30547b6f8a798b725afd8e15ac21cb88d91e2ff797e7f4b7777d60f89c4
|
File details
Details for the file voltwire_fastapi_logging-0.0.1-py3-none-any.whl.
File metadata
- Download URL: voltwire_fastapi_logging-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.9.24 {"installer":{"name":"uv","version":"0.9.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef451c9cf79235d96128586b7710a6be97119dbac6b14b4da30b26ebca570213
|
|
| MD5 |
ede194cd1f4ce80e23b9ea3e7e6fef0d
|
|
| BLAKE2b-256 |
dfbe2e66ab57acbad0c4880fd803339ff5115e08ce42ac349bde797a9f30c08e
|