ecs-logging-python

Logging formatters for ECS (Elastic Common Schema) in Python

APACHE-2.0 License

Downloads
1.9M
Stars
69
Committers
22

Bot releases are hidden (Show)

ecs-logging-python - 2.2.0 Latest Release

Published by xrmx 4 months ago

What's Changed

Features

  • Rewrite type annotations (#119)
  • Make it possible override the JSON serializer in StructlogFormatter (#114)

Bugfixes

  • Don't de-dot ecs.version (#118)
  • Use fromtimestamp instead of deprecated utcfromtimestamp (#105)
  • Remove unused imports and fix an undefined name (#101)

New Contributors

Full Changelog: https://github.com/elastic/ecs-logging-python/compare/2.1.0...2.2.0

ecs-logging-python - 2.1.0

Published by basepi about 1 year ago

Features

  • Add support for service.environment from APM log correlation (#96)

Bugfixes

  • Fix stack trace handling in StructLog for ECS compliance (#97)

New Contributors

Full Changelog: https://github.com/elastic/ecs-logging-python/compare/2.0.2...2.1.0

ecs-logging-python - 2.0.2

Published by basepi over 1 year ago

  • Allow flit-core 3+ (#94)
  • Remove python2 leftovers (#94)

Full Changelog: https://github.com/elastic/ecs-logging-python/compare/2.0.0...2.0.2

ecs-logging-python - 2.0.0

Published by basepi over 2 years ago

  • Remove python 2 support (#78)
  • Add global extra context fields to StdLibFormatter (#65)

New Contributors

Full Changelog: https://github.com/elastic/ecs-logging-python/compare/1.1.0...2.0.0

ecs-logging-python - 1.1.0

Published by basepi almost 3 years ago

  • Remove python 3.5 support (#69)
  • Fix an issue where APM fields would override user-provided fields even when APM wasn't installed (#67)
  • Removed event.dataset field handling to match elastic-apm v6.6.0 (#69)
ecs-logging-python - 1.0.2

Published by basepi about 3 years ago

  • Fix a signature mismatch between StdLibFormatter and logging.Formatter,
    which could cause issues in Django and Gunicorn
    (#54)
ecs-logging-python - 1.0.1

Published by basepi over 3 years ago

  • Fixed an issue in StructlogFormatter caused by a conflict with event
    (used for the log message) and event.dataset (a field provided by the
    elasticapm integration) (#46)
  • Add default/fallback handling for json.dumps (#47)
  • Fixed an issue in StdLibFormatter when exc_info=False (#42)
ecs-logging-python - 1.0.0

Published by basepi over 3 years ago

  • Remove "beta" designation
ecs-logging-python - 0.6.0

Published by basepi over 3 years ago

  • Add validation against the ecs-logging spec [#31]
  • Add support for service.name from APM log correlation [#32]
  • Correctly order @timestamp, log.level, and message fields [#28]
ecs-logging-python - 0.5.0

Published by sethmlarson about 4 years ago

  • Updated supported ECS version to 1.6.0 (#24)
  • Added support for LogRecord.stack_info (#23)
  • Fixed normalizing of items in list that aren't of type dict (#22, contributed by @camerondavison)
ecs-logging-python - 0.4

Published by sethmlarson about 4 years ago

  • Added automatic collection of ECS fields trace.id, span.id, and transaction.id for
    Log Correlation with the Python Elastic APM agent (#17)
ecs-logging-python - 0.3

Published by sethmlarson about 4 years ago

0.3 (2020-07-27)

  • Added collecting LogRecord.exc_info into error.* fields
    automatically for StdlibFormatter (#16)
  • Added collecting process and thread info from LogRecord into process.* fields
    automatically for StdlibFormatter (#16)
  • Added exclude_fields parameter to StdlibFormatter to
    exclude fields from being formatted to JSON (#16)
  • Added stack_trace_limit parameter to StdlibFormatter
    to control the number of stack trace frames being
    formatted in error.stack_trace (#16)

Thanks to community contributor Jon Moore (@comcast-jonm)
for their contributions to this release.

ecs-logging-python - 0.2

Published by sethmlarson about 4 years ago

0.2 (2020-04-28)

  • Added support for using log(..., extra={...}) on standard library
    loggers to use extended and custom fields (#8)
ecs-logging-python - 0.1

Published by sethmlarson about 4 years ago

0.1 (2020-03-26)

  • Added StdlibFormatter for use with the standard library logging module
  • Added StructlogFormatter for use with the structlog package