Skip to main content

trigerr-logging

Structured (JSON-line) logging for Trigerr services and SDK.

Extracted from trigerr/trigerr/logging_utils.py as a standalone, zero-dependency package matching sysstra-logging's architecture.

Installation

pip install -e .

Usage

from trigerr_logging import get_logger, bind, bound, clear_context

logger = get_logger("oms", log_file="logs/oms.jsonl", service="trigerr-oms")
bind(request_id="req-123", tenant="trigerr")
logger.info("order placed", extra={"order_id": "ord-456"})

Download files

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

Source Distribution

trigerr_logging-0.4.1.tar.gz (19.4 kB view details)

Uploaded Source

Built Distribution

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

trigerr_logging-0.4.1-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

Details for the file trigerr_logging-0.4.1.tar.gz.

File metadata

  • Download URL: trigerr_logging-0.4.1.tar.gz
  • Upload date:
  • Size: 19.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for trigerr_logging-0.4.1.tar.gz
Algorithm Hash digest
SHA256 9c93019cc633e3ea3176cf7fb2691949514d9cbbad509ab1df3d1707dc583b8a
MD5 4d8801e545849e767533d344e6d0261c
BLAKE2b-256 117e0363247848b74813d4364168c5a9edd9d95f8bbe67b9d61d1a019bc3b8af

See more details on using hashes here.

File details

Details for the file trigerr_logging-0.4.1-py3-none-any.whl.

File metadata

File hashes

Hashes for trigerr_logging-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d1bf1d7b63b127ac9a2fc34bfe40cb0f0bf91f4f757fdcbbeb600394fee706d4
MD5 e25e1a198c512f0d10f75bae7c94ac20
BLAKE2b-256 0d6ca9d6b3f07461369278e0dba2b2eb1d09a2075c24b39923e8d9bc9cafc439

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.4.1 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page