Skip to main content

Logging formatters for ECS in Python

Project description

ecs-logging-python

Please note that this is library is in a beta version and backwards-incompatible changes might be introduced in future releases.

Installation

python -m pip install ecs-logging

Getting Started

import logging
import ecs_logging

# Get the Logger
logger = logging.getLogger("app")
logger.setLevel(logging.DEBUG)

# Add an ECS formatter to the Handler
handler = logging.StreamHandler()
handler.setFormatter(ecs_logging.StdlibFormatter())
logger.addHandler(handler)

# Emit a log! :)
logger.debug("Example message!")

License

Apache-2.0

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

ecs-logging-0.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

ecs_logging-0-py2.py3-none-any.whl (7.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file ecs-logging-0.tar.gz.

File metadata

  • Download URL: ecs-logging-0.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.23.0

File hashes

Hashes for ecs-logging-0.tar.gz
Algorithm Hash digest
SHA256 abaab5ccf4dd46239755861217ad8e329fc744fee37534fe14b1135af2135eb0
MD5 de6b2d1d0ae117e923c3106a395a9ffa
BLAKE2b-256 7e9ad4df6edbbf3471b0ecab96529c77b3e046351d1f6d4ecce855a040085651

See more details on using hashes here.

File details

Details for the file ecs_logging-0-py2.py3-none-any.whl.

File metadata

  • Download URL: ecs_logging-0-py2.py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.23.0

File hashes

Hashes for ecs_logging-0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0d661229368ac9df6a2e2dbb308b614fc82eeab3f4fa350748bd7df2ae9a6d42
MD5 e6c4ca1bb19ec600fd22f5cc9ec97280
BLAKE2b-256 b9f09e425b7978112377cc4d77174a3988d6991378d309d5e7a02bfd3b74ac49

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page