cutesquirrel/datadog-monolog

Datadog integration for Monolog

Installs: 1 412

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 7

pkg:composer/cutesquirrel/datadog-monolog

1.6 2024-07-03 09:20 UTC

This package is auto-updated.

Last update: 2025-12-01 00:08:11 UTC


README

Latest Stable Version Project Status License

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');