Skip to main content

Internal structured logging utility for ECL microservices

Project description

Structured Logging Utilities for ECL microservices

Python Version License

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


Download files

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

Source Distribution

ecl_logging_utility-1.0.3.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

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

ecl_logging_utility-1.0.3-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file ecl_logging_utility-1.0.3.tar.gz.

File metadata

  • Download URL: ecl_logging_utility-1.0.3.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for ecl_logging_utility-1.0.3.tar.gz
Algorithm Hash digest
SHA256 23e2f594a6f4d96d63f1262a9152b47c7cb5026f4fbf0db3c1cefec21707c992
MD5 e4d0d0892c138da9bc1241eb11b56b00
BLAKE2b-256 ba0f1bf159c5f22930a44785b3043e0d59b09124f13d5b440cc43f285b96491b

See more details on using hashes here.

File details

Details for the file ecl_logging_utility-1.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for ecl_logging_utility-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 27840a976e09fb01a19be32c186ee186f093e76b8bfb199facef8f3180148816
MD5 a9695faf9391ca580335a75c06bcd76b
BLAKE2b-256 d6d89da023e9499b4c9b91cf5e108fbb374dadcbf73ed034b1e8ca8d5fa108ed

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