PHPackages                             theipster/monolog-utils - 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. theipster/monolog-utils

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

theipster/monolog-utils
=======================

Common features for Monolog.

1.0.0(7y ago)06[1 PRs](https://github.com/theipster/monolog-utils/pulls)MITPHPCI passing

Since Mar 25Pushed 3mo ago1 watchersCompare

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

READMEChangelog (1)Dependencies (4)Versions (3)Used By (0)

monolog-utils
=============

[](#monolog-utils)

Common features for Monolog

`RequestHeaderProcessor`
------------------------

[](#requestheaderprocessor)

Takes a PSR-7 request, attempts to extract a specified HTTP header, and then injects the value into the log message.

Example usage:

```
use Monolog\Logger;
use TheIpster\MonologUtils\RequestHeaderProcessor;

// Marshal superglobals into a PSR-7 request.
$request = ...;

// Build logger.
$logger = Logger(...);
$logger->pushProcessor(new RequestHeaderProcessor($request, 'X-My-Custom-Header', 'my_custom_header'));

// Log stuff.
$logger->info('Some message.');
```

`XRequestIdProcessor`
---------------------

[](#xrequestidprocessor)

A specific variation of `RequestHeaderProcessor`, focusing on the `X-Request-ID` HTTP header.

By default, the value is injected as `'request_id'`.

Example usage:

```
use Monolog\Logger;
use TheIpster\MonologUtils\XRequestIdProcessor;

// Marshal superglobals into a PSR-7 request.
$request = ...;

// Build logger.
$logger = Logger(...);
$logger->pushProcessor(new XRequestIdProcessor($request));

// Log stuff.
$logger->info('Some message.');
```

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance57

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

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

Unknown

Total

1

Last Release

2602d ago

### Community

Maintainers

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

---

Top Contributors

[![theipster](https://avatars.githubusercontent.com/u/29168040?v=4)](https://github.com/theipster "theipster (4 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/theipster-monolog-utils/health.svg)

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

###  Alternatives

[open-telemetry/sdk

SDK for OpenTelemetry PHP.

2222.9M248](/packages/open-telemetry-sdk)[illuminated/console-logger

Logging and Notifications for Laravel Console Commands.

8674.9k](/packages/illuminated-console-logger)[pagemachine/typo3-formlog

Form log for TYPO3

23225.3k6](/packages/pagemachine-typo3-formlog)[open-telemetry/opentelemetry-auto-wordpress

OpenTelemetry auto-instrumentation for Wordpress

17166.0k](/packages/open-telemetry-opentelemetry-auto-wordpress)[oras/monolog-middleware

PSR-7 Monolog Middleware

2012.1k](/packages/oras-monolog-middleware)

PHPackages © 2026

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