PHPackages                             nlappe/monolog-logdna-laravel - 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. nlappe/monolog-logdna-laravel

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

nlappe/monolog-logdna-laravel
=============================

LogDNA handler for Monolog

2.1.5(5y ago)027LGPL-3.0-onlyPHPPHP ^7.0

Since May 4Pushed 5y agoCompare

[ Source](https://github.com/nlappe/monolog-logdna)[ Packagist](https://packagist.org/packages/nlappe/monolog-logdna-laravel)[ Docs](http://github.com/butopea/monolog-logdna)[ RSS](/packages/nlappe-monolog-logdna-laravel/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (2)Versions (14)Used By (0)

[LogDNA](https://logdna.com/) handler for [Monolog](https://github.com/Seldaek/monolog)
=======================================================================================

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

Monolog backend for logdna. This backend use logdna [ingestion api](https://docs.logdna.com/v1.0/reference#api).

Reason for the Fork
-------------------

[](#reason-for-the-fork)

As everyone can see, this fork still uses the underlying curl implementation rather than Http/Guzzle way of Laravel. (which uses curl aswell, but you know...) I needed a fast, but timeout-configurable solution, so i went for a fork and adding the usual env/config handling.

Maybe i will change the curl impl to a more laravely way - but as time is always tight it might take a while.

Install
-------

[](#install)

Install with compose `composer require nlappe/monolog-logdna-laravel`.

Usage
-----

[](#usage)

In yout config-&gt;logging.php add this to your 'channels' array:

```
    'logdna' => [
        'driver' => 'monolog',
        'level' => 'debug',
        'handler' => Nlappe\Monolog\Handler\LogdnaHandler::class,
        'handler_with' => [
            'ingestion_key' => env('LOG_DNA_API_KEY'),
            'hostname' => config('app.name'),
        ],
        'formatter' => 'default',  // ##### does not work without this!
    ],

```

Then configure it to be used. E.g. add it to the stack channel as an additional log target.

```
'channels' => [
    'stack' => [
        'driver' => 'stack',
        'channels' => ['single', 'logdna'],
        'ignore_exceptions' => false,
    ],
    ...
 ]

```

Config
------

[](#config)

To modify the curl timeouts create the follwoing keys in your logging.php config file:
`return [`
`'curl_connect_timeout' => env('CURL_CONNECT_TIMEOUT', 3),`
`'curl_request_timeout' => env('CURL_REQUEST_TIMEOUT', 5),`
`]`

curl\_connect\_timeout is responsible for the connection timeout. If curl doesnt receive any bytes in the given amount of seconds it will throw an error. curl\_request\_timeout is responsible for the request timeout. if the request takes longer than the specified time in seconds, it will abort and throw an error.

License
-------

[](#license)

This project is licensed under LGPL3.0. See `LICENSE` file for details.

Versions
--------

[](#versions)

Version 1.x is php5 compatible version while 2.x is php7.

Test
----

[](#test)

To test the project, simply call `make` or `make test`. Everything runs in docker container.

Clean
-----

[](#clean)

To clean your system, call `make clean`. Take note that if you use the same docker images as this project, you might not want to clean. Read the `Makefile` for more information.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 80% 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 ~98 days

Recently: every ~175 days

Total

13

Last Release

2122d ago

Major Versions

0.0.1 → 1.0.02017-05-15

1.0.1 → 2.0.02017-05-15

1.0.2 → 2.1.02018-08-18

1.1.0 → 2.1.12018-08-20

PHP version history (2 changes)0.0.1PHP &gt;=5.3.0

2.0.0PHP ^7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/691260cc7ea57bc5774718adf7f1bf0fb30a00d4beb10aa98771cb1946c9aa56?d=identicon)[nils.lappe+packagist@gmail.com](/maintainers/nils.lappe+packagist@gmail.com)

---

Top Contributors

[![nvanheuverzwijn](https://avatars.githubusercontent.com/u/943226?v=4)](https://github.com/nvanheuverzwijn "nvanheuverzwijn (24 commits)")[![nlappe](https://avatars.githubusercontent.com/u/8957782?v=4)](https://github.com/nlappe "nlappe (3 commits)")[![schiggi](https://avatars.githubusercontent.com/u/3776606?v=4)](https://github.com/schiggi "schiggi (2 commits)")[![PLaRoche](https://avatars.githubusercontent.com/u/8809152?v=4)](https://github.com/PLaRoche "PLaRoche (1 commits)")

---

Tags

logpsr-3logginglogdna

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[monolog/monolog

Sends your logs to files, sockets, inboxes, databases and various web services

21.4k964.9M7.0k](/packages/monolog-monolog)[analog/analog

Fast, flexible, easy PSR-3-compatible PHP logging package with dozens of handlers.

3451.5M24](/packages/analog-analog)[inpsyde/wonolog

Monolog-based logging package for WordPress.

183617.9k7](/packages/inpsyde-wonolog)[nvanheuverzwijn/monolog-logdna

Mezmo/Logdna handler for Monolog

21231.3k2](/packages/nvanheuverzwijn-monolog-logdna)[apix/log

Minimalist, thin and fast PSR-3 compliant (multi-bucket) logger.

511.0M18](/packages/apix-log)[elastic/ecs-logging

Format and enrich your log files in the elastic common schema

21907.5k1](/packages/elastic-ecs-logging)

PHPackages © 2026

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