PHPackages                             fusionspim/monolog-logdna - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. fusionspim/monolog-logdna

Abandoned → [nvanheuverzwijn/monolog-logdna](/?search=nvanheuverzwijn%2Fmonolog-logdna)ArchivedLibrary[Logging &amp; Monitoring](/categories/logging)

fusionspim/monolog-logdna
=========================

A Monolog handler and formatter for LogDNA

8.0(3y ago)7165.9k—6.9%1[1 issues](https://github.com/fusionspim/monolog-logdna/issues)MITPHPPHP ^8.1

Since Jun 14Pushed 3y ago2 watchersCompare

[ Source](https://github.com/fusionspim/monolog-logdna)[ Packagist](https://packagist.org/packages/fusionspim/monolog-logdna)[ RSS](/packages/fusionspim-monolog-logdna/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (7)Versions (24)Used By (0)

Mezmo/LogDNA handler for Monolog
================================

[](#mezmologdna-handler-for-monolog)

**This package is now archived, please see **

This library provides a simple Monolog handler for [Mezmo](https://www.mezmo.com/) (previously LogDNA) [ingestion API](https://docs.mezmo.com/log-analysis-api/ref#ingest).

Compatibility
-------------

[](#compatibility)

This package aims to stay compatible with the latest version of Laravel. The current version supports:

- Laravel 10
- PHP 8.1
- Monolog 3

Installation
------------

[](#installation)

```
composer require fusionspim/monolog-logdna

```

Basic Usage
-----------

[](#basic-usage)

```
use Fusions\Monolog\LogDna\Handler\LogDnaHandler;
use Monolog\Logger;

$handler = new LogDnaHandler(getenv('LOGDNA_INGESTION_KEY'), 'host');

$logger = new Logger('app');
$logger->pushHandler($handler);

$logger->info("Don't forget to pack a towel", ['extra' => 'data']);

```

Advanced Usage
--------------

[](#advanced-usage)

Setter methods are provider on the handler for the `mac`, `ip` and `tag` fields of the ingestion API:

```
$handler->setIpAddress('127.0.0.1');
$handler->setMacAddress('A1-B2-C3-D4-E5-C6');
$handler->setTags(['FOO', 'BAR']);

```

The handler uses Guzzle's [HTTP Client](http://docs.guzzlephp.org/en/stable/) and is configured with a timeout of `5` seconds. You can set your own custom HTTP client if required:

```
$handler->setHttpClient(new Client([
    'timeout' => 60,
    // Your options...
]));

```

You can also get access to the last response received from the LogDNA API:

```
$response = $handler->getLastResponse();

```

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity38

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity78

Established project with proven stability

 Bus Factor1

Top contributor holds 56.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~68 days

Recently: every ~87 days

Total

21

Last Release

1152d ago

Major Versions

3.1.0 → 4.0.02020-08-17

4.2.0 → 5.0.02021-02-11

5.0.3 → 6.0.02021-12-21

6.0.3 → 7.0.02022-08-09

7.0.0 → 8.02023-03-23

PHP version history (6 changes)1.0.0PHP &gt;=7.2

3.0.0PHP ^7.3

3.1.0PHP &gt;=7.4

5.0.3PHP ^7.4 || ^8.0

6.0.0PHP ^8.0

7.0.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/f78af2dd4348815b22f074885277e2be60bc70f8d2505a466aeaedb972b21132?d=identicon)[weshooper](/maintainers/weshooper)

![](https://www.gravatar.com/avatar/cac532f14dce84f0bb5cfadf79109d9fa9428b6b78af15c1f05d3476bbaf6241?d=identicon)[ziadoz](/maintainers/ziadoz)

![](https://www.gravatar.com/avatar/d071e60022bd5137d78c3940a7bbe4920b58db384c149ad519ad0983ef4774b1?d=identicon)[maxakropolis](/maintainers/maxakropolis)

---

Top Contributors

[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (97 commits)")[![weshooper](https://avatars.githubusercontent.com/u/2248206?v=4)](https://github.com/weshooper "weshooper (36 commits)")[![ziadoz](https://avatars.githubusercontent.com/u/645637?v=4)](https://github.com/ziadoz "ziadoz (18 commits)")[![liamkeily](https://avatars.githubusercontent.com/u/2040842?v=4)](https://github.com/liamkeily "liamkeily (10 commits)")[![maxakropolis](https://avatars.githubusercontent.com/u/10739767?v=4)](https://github.com/maxakropolis "maxakropolis (6 commits)")[![WillJW](https://avatars.githubusercontent.com/u/1878977?v=4)](https://github.com/WillJW "WillJW (4 commits)")[![dannorcott](https://avatars.githubusercontent.com/u/52197623?v=4)](https://github.com/dannorcott "dannorcott (1 commits)")

###  Code Quality

TestsPHPUnit

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/fusionspim-monolog-logdna/health.svg)

```
[![Health](https://phpackages.com/badges/fusionspim-monolog-logdna/health.svg)](https://phpackages.com/packages/fusionspim-monolog-logdna)
```

###  Alternatives

[honeybadger-io/honeybadger-php

Honeybadger PHP library

381.5M4](/packages/honeybadger-io-honeybadger-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
