Metadata-Version: 2.4
Name: trigerr-logging
Version: 0.4.1
Summary: Structured JSON-line logging for Trigerr services and the Trigerr SDK.
Author: Anurag Singh Kushwah
License-Expression: MIT
Project-URL: Homepage, https://gitlab.com/trigerr/trigerr-logging
Project-URL: Repository, https://gitlab.com/trigerr/trigerr-logging
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Topic :: System :: Logging
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Provides-Extra: dev
Requires-Dist: build>=1.2; extra == "dev"
Requires-Dist: pytest>=7.0; extra == "dev"
Dynamic: license-file

# 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

```bash
pip install -e .
```

## Usage

```python
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"})
```
