nohponex / monolog-datadog-handler
Monolog Handler that uses Datadog
Installs: 44 155
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 2
Forks: 1
Open Issues: 3
Requires
- php: ^7.0 | ^8.0
- datadog/php-datadogstatsd: ^1.0
- monolog/monolog: ^1.23
Requires (Dev)
This package is auto-updated.
Last update: 2024-10-25 14:50:30 UTC
README
Monolog Handler that uses Datadog
Implemented for TCP Submission to Datadog API using datadog/php-datadogstatsd
Installation
composer require nohponex/monolog-datadog-handler
Basic Usage
<?php use Nohponex\MonologDataDogHandler\DataDogHandler; $tag = [ sprintf( 'environment:%s', 'ci' ), sprintf( 'instance:%s', 'api' ) ]; $log = new Logger('name'); $log->pushHandler( new DataDogHandler( 'xxxx', 'yyy', $tag, \Monolog\Logger::INFO ) );
License
nohponex/monolog-datadog-handler is licensed under the MIT License - see the LICENSE file for details