Skip to main content

A logging library for FastAPI with request_id tracking

Project description

FastAPI Logger Library

This is a reusable logging library for FastAPI applications with request_id tracking.

Installation

pip install nero-fastapi-logger-lib

Usage

from fastapi_logger.logger import logger

logger.info("Hello from FastAPI!")
from fastapi_logger.logger import logger, setup_sqlalchemy_logging
setup_sqlalchemy_logging()
logger.info("Hello from FastAPI!")

Features

  • Request ID tracking for API & Cron jobs
  • JSON & color log formatting
  • Compatible with FastAPI middleware

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

nero-fastapi-logger-lib-0.1.4.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nero_fastapi_logger_lib-0.1.4-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file nero-fastapi-logger-lib-0.1.4.tar.gz.

File metadata

  • Download URL: nero-fastapi-logger-lib-0.1.4.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.16

File hashes

Hashes for nero-fastapi-logger-lib-0.1.4.tar.gz
Algorithm Hash digest
SHA256 f2d0435e1a942962e9aba71c2d2944ec134c14057fdc96e87f6abb94d1a45391
MD5 28eb8e2ccccb8d8152ea61897bda9799
BLAKE2b-256 4a6b1243c5ddcb89fc25f89d203adfc306c2b3af24841d59d3e72e5f2ec26ff1

See more details on using hashes here.

File details

Details for the file nero_fastapi_logger_lib-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for nero_fastapi_logger_lib-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 40456860cea08d08c9d1c65add93bf613e93e0c2e4c0e6016d4be9c476b6dc5c
MD5 2efe16939ac78def764b1ad2c8260e2d
BLAKE2b-256 a8d8bffd4bf157f0860cac5d00b011c3632f7affa0caef248c7c2509c353bd80

See more details on using hashes here.

Supported by

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