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
Release files for ecs-logging 0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ecs-logging-0.tar.gz | 8.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ecs_logging-0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 15.9 kB
Release files / ecs-logging-0.tar.gz
| Download URL | ecs-logging-0.tar.gz |
|---|---|
| Size | 8.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
abaab5ccf4dd46239755861217ad8e329fc744fee37534fe14b1135af2135eb0
|
|
BLAKE2b-256 checksum How to use checksums |
7e9ad4df6edbbf3471b0ecab96529c77b3e046351d1f6d4ecce855a040085651
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.23.0
|
Release files / ecs_logging-0-py2.py3-none-any.whl
| Download URL | ecs_logging-0-py2.py3-none-any.whl |
|---|---|
| Size | 7.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
0d661229368ac9df6a2e2dbb308b614fc82eeab3f4fa350748bd7df2ae9a6d42
|
|
BLAKE2b-256 checksum How to use checksums |
b9f09e425b7978112377cc4d77174a3988d6991378d309d5e7a02bfd3b74ac49
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.23.0
|