PHPackages                             marco-introini/monolog-splunk-formatter - 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. marco-introini/monolog-splunk-formatter

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

marco-introini/monolog-splunk-formatter
=======================================

Splunk Line Formatter for Monolog

v1.1.0(3y ago)11.3k—0%[1 issues](https://github.com/marco-introini/monolog-splunk-formatter/issues)MITPHPPHP &gt;=8.0

Since Nov 18Pushed 3y ago1 watchersCompare

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

READMEChangelog (4)Dependencies (4)Versions (5)Used By (0)

Monolog Splunk Formatter
========================

[](#monolog-splunk-formatter)

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

[](#installation)

Installation is possible using Composer

```
composer require marco-introini/monolog-splunk-formatter

```

Usage
-----

[](#usage)

- create an instance of \\Mintdev\\Monolog\\Formatter\\SplunkLineFormatter
- set it as the formatter for the \\Monolog\\Handler\\StreamHandler

If you want to use log rotation use the Monolog\\Handler\\RotatingFileHandler

```
use \Monolog\Logger;
use \Monolog\Handler\StreamHandler;
use \Mintdev\Monolog\Formatter\SplunkLineFormatter;
use \Monolog\Level;

$log = new Logger('DEMO');
$handler = new StreamHandler('php://stdout', Level::Info);
$handler->setFormatter(new SplunkLineFormatter());
$log->pushHandler($handler);

$log->addError('Bad stuff happened', array('detail1' => 'something', 'detail2' => 'otherthing'));

```

Thanks to
---------

[](#thanks-to)

Part of this project is based on an old project from Vube:

It's completely redesigned but many aspects are taken from that project. So thank you!

Test
----

[](#test)

Tests are created using Pest

```
./vendor/bin/pest

```

License
-------

[](#license)

This project is licensed as Open Source under MIT license

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~9 days

Total

4

Last Release

1244d ago

Major Versions

v0.0.1 → v1.0.02022-11-18

### Community

Maintainers

![](https://www.gravatar.com/avatar/01b7629b248c3a25d02c6e302e8441f4cc4b4f05c31fc7d543b72dc0b1eded80?d=identicon)[marco-introini](/maintainers/marco-introini)

---

Top Contributors

[![marco-introini](https://avatars.githubusercontent.com/u/89445565?v=4)](https://github.com/marco-introini "marco-introini (6 commits)")

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/marco-introini-monolog-splunk-formatter/health.svg)

```
[![Health](https://phpackages.com/badges/marco-introini-monolog-splunk-formatter/health.svg)](https://phpackages.com/packages/marco-introini-monolog-splunk-formatter)
```

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B9.2k](/packages/psr-log)[itsgoingd/clockwork

php dev tools in your browser

5.9k27.6M94](/packages/itsgoingd-clockwork)[graylog2/gelf-php

A php implementation to send log-messages to a GELF compatible backend like Graylog2.

41838.2M138](/packages/graylog2-gelf-php)[bugsnag/bugsnag-psr-logger

Official Bugsnag PHP PSR Logger.

32132.5M2](/packages/bugsnag-bugsnag-psr-logger)[consolidation/log

Improved Psr-3 / Psr\\Log logger based on Symfony Console components.

15462.2M7](/packages/consolidation-log)[datadog/php-datadogstatsd

An extremely simple PHP datadogstatsd client

19124.6M15](/packages/datadog-php-datadogstatsd)

PHPackages © 2026

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