Skip to main content

Structured logs and middleware for fastapi with sentry integration

Project description

FastAPI structured logs

Provides a wrapper over the structlog for additional doping in json format, as well as output of standard logs to the console, configuration via .env files via pedantic.

In addition, middleware and a sentry configuration are available for use in FastAPI applications.

Installation

Using logging

Logger configuration

Using logging in a FastAPI application

Using middleware in a FastAPI application

Using Sentry in a FastAPI application

Examples

Dependencies

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fastapi_structlog-0.2.0.tar.gz (17.3 kB view hashes)

Uploaded Source

Built Distribution

fastapi_structlog-0.2.0-py3-none-any.whl (22.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page