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↓87.5%[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 today

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

22

—

LowBetter than 21% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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

1296d 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.2B11.5k](/packages/psr-log)[open-telemetry/api

API for OpenTelemetry PHP.

1941.5M276](/packages/open-telemetry-api)[open-telemetry/sdk

SDK for OpenTelemetry PHP.

2328.5M343](/packages/open-telemetry-sdk)

PHPackages © 2026

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