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)
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c93019cc633e3ea3176cf7fb2691949514d9cbbad509ab1df3d1707dc583b8a
|
|
| MD5 |
4d8801e545849e767533d344e6d0261c
|
|
| BLAKE2b-256 |
117e0363247848b74813d4364168c5a9edd9d95f8bbe67b9d61d1a019bc3b8af
|
File details
Details for the file trigerr_logging-0.4.1-py3-none-any.whl.
File metadata
- Download URL: trigerr_logging-0.4.1-py3-none-any.whl
- Upload date:
- Size: 15.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d1bf1d7b63b127ac9a2fc34bfe40cb0f0bf91f4f757fdcbbeb600394fee706d4
|
|
| MD5 |
e25e1a198c512f0d10f75bae7c94ac20
|
|
| BLAKE2b-256 |
0d6ca9d6b3f07461369278e0dba2b2eb1d09a2075c24b39923e8d9bc9cafc439
|