Internal structured logging utility for ECL microservices
Project description
Structured Logging Utilities for ECL microservices
Internal package for consistent structured logging across ECL microservices. Features JSON formatting, automatic metadata capture, and environment-based configuration.
Features
- 📝 Structured JSON logs with consistent schema
- 🕒 Automatic timestamping in ISO 8601 format
- 📍 Complete source location (file path, line number, module, function)
- 🔍 Query-ready fields (transaction_id, request_ip, service_name)
- ⚙️ Environment-controlled log levels
- 🔗 Request context propagation across services
- 🛡 Private package for internal use of ECL
Environment Variables
- ECL_LOGGING_UTILITY_LOG_LEVEL: Set the log level, default: INFO
- ECL_LOGGING_UTILITY_APP_VERSION: Denotes the app version which will be displayed in the log, default: AMBIVALENT_APP_VERSION
- ECL_LOGGING_UTILITY_SERVICE_NAME: Denotes the service name which will be displayed in the log, default: AMBIVALENT_SERVICE_NAME
Installation
pip install ecl-logging-utility
Version History
See CHANGELOG.md for release notes.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 ecl_logging_utility-1.0.2.tar.gz.
File metadata
- Download URL: ecl_logging_utility-1.0.2.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
610648f7dcc6f846cda085895d79dae235972879fd69f9ad753848ff27553231
|
|
| MD5 |
b88d7a0c2ef573a57c3685ab738a0f11
|
|
| BLAKE2b-256 |
baca89821df50581aeb5a2318e2adb3fc225aa4ee9c9aa701a090fc3d1f292c8
|
File details
Details for the file ecl_logging_utility-1.0.2-py3-none-any.whl.
File metadata
- Download URL: ecl_logging_utility-1.0.2-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1f8cebbcbc409a42040db1308f9df1883ef4ecaa807a1fb7391582f449cca236
|
|
| MD5 |
bd86fe0ee17ec84491520ec310fa4717
|
|
| BLAKE2b-256 |
de9885af30412f8d59e02e7e668e25c0a808df00a0075d509f81e6abe776253c
|