PHPackages                             softonic/monolog-request-id-processor - 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. softonic/monolog-request-id-processor

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

softonic/monolog-request-id-processor
=====================================

Monolog X-Request-ID processor to add traceability to all logs

1.0.0(4y ago)08.3kApache-2.0PHPPHP &gt;=7.4

Since Jun 28Pushed 4y ago4 watchersCompare

[ Source](https://github.com/softonic/monolog-request-id-processor)[ Packagist](https://packagist.org/packages/softonic/monolog-request-id-processor)[ Docs](https://github.com/softonic/monolog-request-id-processor)[ RSS](/packages/softonic-monolog-request-id-processor/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (1)Dependencies (6)Versions (2)Used By (0)

Monolog Request Id Processor
============================

[](#monolog-request-id-processor)

[![Latest Version](https://camo.githubusercontent.com/14ca9633eff3538d171adda26b4736d0ab3bf557a7c4e6bf87255ba0770b3cc7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f736f66746f6e69632f6d6f6e6f6c6f672d726571756573742d69642d70726f636573736f722e7376673f7374796c653d666c61742d737175617265)](https://github.com/softonic/monolog-request-id-processor/releases)[![Software License](https://camo.githubusercontent.com/36cfc741510e076bec951c1421a2b1c3a5553e953fcdb378339626a5f33c1e8d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d417061636865253230322e302d626c75652e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/48a8f7feb83ee9ec8039504d47e064a56717bca248d677ff4322acb04a213882/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f736f66746f6e69632f6d6f6e6f6c6f672d726571756573742d69642d70726f636573736f722f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/softonic/gmonolog-request-id-processor)[![Total Downloads](https://camo.githubusercontent.com/c890bd91d1a6efd1dea4b3a064f084d2f0e347f2aa8b7b0483b0d3ae056bf6ac/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736f66746f6e69632f6d6f6e6f6c6f672d726571756573742d69642d70726f636573736f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/softonic/monolog-request-id-processor)[![Average time to resolve an issue](https://camo.githubusercontent.com/fde4613587a2f03fec45f90daddaa330f148e0be2183256091d90fc69f1adcb5/687474703a2f2f697369746d61696e7461696e65642e636f6d2f62616467652f7265736f6c7574696f6e2f736f66746f6e69632f6d6f6e6f6c6f672d726571756573742d69642d70726f636573736f722e7376673f7374796c653d666c61742d737175617265)](http://isitmaintained.com/project/softonic/monolog-request-id-processor "Average time to resolve an issue")[![Percentage of issues still open](https://camo.githubusercontent.com/8065727b54d4932d58980108698c05235e63838cd99fe48a41400ad2a61ebf46/687474703a2f2f697369746d61696e7461696e65642e636f6d2f62616467652f6f70656e2f736f66746f6e69632f6d6f6e6f6c6f672d726571756573742d69642d70726f636573736f722e7376673f7374796c653d666c61742d737175617265)](http://isitmaintained.com/project/softonic/monolog-request-id-processor "Percentage of issues still open")

Monolog X-Request-ID processor to add traceability to all logs.

Processor based on the official [UidProcessor](https://github.com/Seldaek/monolog/blob/main/src/Monolog/Processor/UidProcessor.php) implementation, but using x-request-id instead of `uid`.

Main features
-------------

[](#main-features)

- Add to the extra logs field the x-request-id provided.

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

[](#installation)

You can require the last version of the package using composer

```
composer require softonic/monolog-request-id-processor
```

### Configuration

[](#configuration)

```
use Monolog\Logger;

$requestId = 'fb703a2f-04ac-470c-bc6b-a4d965a7e404'; // Get x-request-id from any source instead of hardcode it.

$log = new Monolog\Logger('test');
$log->pushProcessor(new \Softonic\Monolog\Processors\RequestId($requestId));
$log->pushHandler(…);

$log->info('Interesting information about the request.');
```

Testing
-------

[](#testing)

`softonic/monolog-request-id-processor` has a [PHPUnit](https://phpunit.de) test suite, and a coding style compliance test suite using [PHP CS Fixer](http://cs.sensiolabs.org/).

To run the tests, run the following command from the project folder.

```
$ make tests
```

To open a terminal in the dev environment:

```
$ make debug
```

License
-------

[](#license)

The Apache 2.0 license. Please see [LICENSE](LICENSE) for more information.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity51

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

Unknown

Total

1

Last Release

1783d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/524887?v=4)[Joskfg](/maintainers/Joskfg)[@joskfg](https://github.com/joskfg)

---

Top Contributors

[![joskfg](https://avatars.githubusercontent.com/u/524887?v=4)](https://github.com/joskfg "joskfg (2 commits)")

---

Tags

monologrequest idmonolog-processorx-request-id

###  Code Quality

TestsPHPUnit

Static AnalysisRector

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/softonic-monolog-request-id-processor/health.svg)

```
[![Health](https://phpackages.com/badges/softonic-monolog-request-id-processor/health.svg)](https://phpackages.com/packages/softonic-monolog-request-id-processor)
```

###  Alternatives

[maxbanton/cwh

AWS CloudWatch Handler for Monolog library

42515.3M27](/packages/maxbanton-cwh)[inpsyde/wonolog

Monolog-based logging package for WordPress.

183617.9k7](/packages/inpsyde-wonolog)[phpnexus/cwh

AWS CloudWatch Handler for Monolog library

393.2M7](/packages/phpnexus-cwh)[logtail/monolog-logtail

Logtail handler for Monolog

233.2M3](/packages/logtail-monolog-logtail)[kdyby/monolog

Integration of Monolog into Nette Framework

33684.0k10](/packages/kdyby-monolog)[inpsyde/logzio-monolog

Logz.io integration for Monolog

191.2M1](/packages/inpsyde-logzio-monolog)

PHPackages © 2026

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