Skip to main content

A production-grade, asynchronous logging decorator for Python.

Project description

LogCrest 🚀

A production-grade, asynchronous logging module for Python.

Features

  • Smart Decorator: Use @log_decorator for effortless logging.
  • Async Processing: non-blocking log writes using background threads.
  • Trace IDs: Automatic parent-child correlation for tracking requests.
  • JSON Formatting: Structured logs ready for ELK/Datadog.
  • Beautiful Console: Color-coded terminal output for developers.
  • SOLID Design: Modular, extensible architecture.

Installation

pip install logcrest
# or
uv pip install logcrest

Quick Start

from logcrest import log_decorator, log

@log_decorator
def my_function(x):
    log.info(f"Doing work with {x}")
    return x * 2

my_function(10)

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

logcrest-0.1.0.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

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

logcrest-0.1.0-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file logcrest-0.1.0.tar.gz.

File metadata

  • Download URL: logcrest-0.1.0.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for logcrest-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4be95d1abc7d44828a0878ac1098d211805f5f994a8ee2ec9b741ceaef95a406
MD5 7d029d7331c1d158134f8c2c17c5d4c0
BLAKE2b-256 9dbe22fbaff57c1a784f12863bbac25cb24e8595deb72487966cbfe592269c5e

See more details on using hashes here.

File details

Details for the file logcrest-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: logcrest-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for logcrest-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d39632e3e2351f6a25fefa3cf0bb4e51084c9ca60daa8327bb36827df2b76163
MD5 58630c31f50afa6171eaca46d9a7d705
BLAKE2b-256 69a63290897131a16dc61e6bbda6c0f1ec57f4cb42e1d2898e09c09befefbccd

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