PHPackages                             oat-sa/lib-correlation-ids-monolog - 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. oat-sa/lib-correlation-ids-monolog

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

oat-sa/lib-correlation-ids-monolog
==================================

OAT Correlation Ids Monolog Library

0.3.0(4y ago)05761GPL-2.0-onlyPHPPHP ^7.1.3 || ^8.0CI failing

Since Nov 6Pushed 2y ago40 watchersCompare

[ Source](https://github.com/oat-sa/lib-correlation-ids-monolog)[ Packagist](https://packagist.org/packages/oat-sa/lib-correlation-ids-monolog)[ RSS](/packages/oat-sa-lib-correlation-ids-monolog/feed)WikiDiscussions master Synced today

READMEChangelog (5)Dependencies (3)Versions (8)Used By (0)

Correlation Ids Monolog Processor Library
=========================================

[](#correlation-ids-monolog-processor-library)

> PHP library for correlation ids monolog processor based on the [correlation ids library](https://github.com/oat-sa/lib-correlation-ids).

Table of contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [Principles](#principles)
- [Usage](#usage)
- [Tests](#tests)

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

[](#installation)

```
$ composer require oat-sa/lib-correlation-ids-monolog
```

Principles
----------

[](#principles)

This library provides a ready to use [monolog](https://github.com/Seldaek/monolog) processor that will extend the logs context with the correlation ids fetched from the [correlation ids registry](https://github.com/oat-sa/lib-correlation-ids/blob/master/src/Registry/CorrelationIdsRegistryInterface.php).

Usage
-----

[](#usage)

You need to push the `CorrelationIdsMonologProcessor` to your logger as follow:

```
