cutesquirrel / datadog-monolog
Datadog integration for Monolog
1.6
2024-07-03 09:20 UTC
Requires
- php: >=7.2
- ext-curl: *
- monolog/monolog: >=2.0
Requires (Dev)
- ext-json: *
- phpunit/phpunit: >=9
README
This package allows you to integrate datadoghq.com into Monolog. Forked from https://github.com/inpsyde/logzio-monolog.
Installation
Install the latest version with
composer require cutesquirrel/datadog-monolog
Basic Usage
<?php use Monolog\Logger; use cutesquirrel\DatadogMonolog\DatadogHandler; // create a log channel $log = new Logger('name'); $log->pushHandler(new DatadogHandler('<your-token>')); // add records to the log $log->warning('Foo'); $log->error('Bar');