thinkspill / ecs-logging-php

Logging formatters for ECS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status

ECS Logging for PHP

Transform your application logs to structured logs that comply with the Elastic Common Schema (ECS). In combination with filebeat you can send your logs directly to Elasticsearch and leverage Kibana's Logs UI to inspect all logs in one single place. This library allows you to provide more observability for your PHP applications as can e.g. corrolate your logs with e.g. APM traces. See ecs-logging for other ECS logging libraries and more resources about ECS & logging.


Please note that this library is in a beta version and backwards-incompatible changes might be introduced in future releases. While we strive to comply to semver, we can not guarantee to avoid breaking changes in minor releases.


Install

composer require elastic/ecs-logging

Examples and Usage

Library Support

  • Currently only Monolog:2.* is supported.
  • The major version of this library is compatible with the major version of ECS.

References

Test

composer test

License

This software is licensed under the Apache 2 license.

About

Logging formatters for ECS

License:Apache License 2.0


Languages

Language:PHP 90.8%Language:Groovy 6.6%Language:Shell 2.6%