Metadata-Version: 2.4
Name: ecs-logging
Version: 2.3.0
Summary: Logging formatters for ECS (Elastic Common Schema) in Python
Home-page: https://github.com/elastic/ecs-logging-python
Author: Seth Michael Larson
Author-email: seth.larson@elastic.co
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: System :: Logging
Classifier: License :: OSI Approved :: Apache Software License
License-File: LICENSE.txt
Requires-Dist: pytest ; extra == "develop"
Requires-Dist: pytest-cov ; extra == "develop"
Requires-Dist: mock ; extra == "develop"
Requires-Dist: structlog ; extra == "develop"
Requires-Dist: elastic-apm ; extra == "develop"
Project-URL: Changelog, https://github.com/elastic/ecs-logging-python/blob/main/CHANGELOG.md
Project-URL: Documentation, https://github.com/elastic/ecs-logging-python
Project-URL: Download, https://github.com/elastic/ecs-logging-python/releases
Project-URL: Issue Tracker, https://github.com/elastic/ecs-logging-python/issues
Project-URL: Source, https://github.com/elastic/ecs-logging-python
Provides-Extra: develop

# ecs-logging-python

[![Build Status](https://github.com/elastic/ecs-logging-python/actions/workflows/test.yml/badge.svg)](https://github.com/elastic/ecs-logging-pythonactions/workflows/test.yml)
[![PyPI](https://img.shields.io/pypi/v/ecs-logging)](https://pypi.org/project/ecs-logging)
[![Versions Supported](https://img.shields.io/pypi/pyversions/ecs-logging)](https://pypi.org/project/ecs-logging)

Check out the [Elastic Common Schema (ECS) reference](https://www.elastic.co/guide/en/ecs/current/index.html)
for more information.

The library currently implements ECS 1.6.

## Installation

```console
$ python -m pip install ecs-logging
```

## Documentation

See the [ECS Logging Python reference](https://www.elastic.co/guide/en/ecs-logging/python/current/index.html) on elastic.co to get started.

## Elastic APM Log Correlation

`ecs-logging-python` supports automatically collecting [ECS tracing fields](https://www.elastic.co/guide/en/ecs/current/ecs-tracing.html)
from the [Elastic APM Python agent](https://github.com/elastic/apm-agent-python) in order to
[correlate logs to spans, transactions and traces](https://www.elastic.co/guide/en/apm/agent/python/current/log-correlation.html) in Elastic APM.

## License

Apache-2.0

