PHPackages                             chaplean/monolog-extra-bundle - 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. chaplean/monolog-extra-bundle

ActiveSymfony-bundle[Logging &amp; Monitoring](/categories/logging)

chaplean/monolog-extra-bundle
=============================

Provides support for extra fields in request header

v1.0.0(6y ago)05.0kMITPHPPHP &gt;=7.1

Since May 29Pushed 6y ago3 watchersCompare

[ Source](https://github.com/chaplean/monolog-extra-bundle)[ Packagist](https://packagist.org/packages/chaplean/monolog-extra-bundle)[ RSS](/packages/chaplean-monolog-extra-bundle/feed)WikiDiscussions master Synced 3d ago

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

monolog-extra-bundle
====================

[](#monolog-extra-bundle)

[![Build Status](https://camo.githubusercontent.com/6c6591d20c7ffac1ce55a61ce458374f1e1f6d6a3b9c6a7db862b8f03cb2eb47/68747470733a2f2f7472617669732d63692e6f72672f636861706c65616e2f6d6f6e6f6c6f672d65787472612d62756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/chaplean/monolog-extra-bundle)[![Coverage Status](https://camo.githubusercontent.com/4985f9cc15fce308fba74041ff6e7068c2b5a83cba99416275f9145b466c2a64/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f636861706c65616e2f6d6f6e6f6c6f672d65787472612d62756e646c652f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/chaplean/monolog-extra-bundle?branch=master)[![contributions welcome](https://camo.githubusercontent.com/9e93e892d0685e1bf7a1d0bd7c8410d6ecf2086a0a7b48dd58a6b96fa556ea2a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f6e747269627574696f6e732d77656c636f6d652d627269676874677265656e2e7376673f7374796c653d666c6174)](https://github.com/chaplean/monolog-extra-bundle/issues)

This bundle adds support for extra fields for symfony/monolog-bundle (&gt;= 3.0).

Table of content
----------------

[](#table-of-content)

- [Installation](#installation)
- [Configuration](#configuration)
- [Usage](#usage)
- [Versioning](#versioning)
- [Contributing](#contributing)
- [Hacking](#hacking)
- [License](#license)

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

[](#installation)

This bundle requires at least Symfony 3.0.

You can use [composer](https://getcomposer.org) to install monolog-extra-bundle:

```
composer require chaplean/monolog-extra-bundle
```

Then add to your AppKernel.php:

```
new Chaplean\Bundle\MonologExtraBundle\ChapleanMonologExtraBundle(),
```

Configuration
-------------

[](#configuration)

Optionally if you want to add global extra fields.

services.yml:

```
services:
    your_service_name:
        class: Chaplean\Bundle\MonologExtraBundle\Processor\ExtraFieldsProcessor
        arguments:
            $globalExtraFields:
                key : 'value'
                key2 : 'value2'
        tags:
            - { name: monolog.processor, handler: your_handler }
```

Usage
-----

[](#usage)

If you want to use logger and send extra field, you can use LoggerExtra which exposes same function than default logger. Add a key 'extra' in the context containing the list of additional fields.

```
$loggerExtra->error('message', ['extra' => ['key' => 'value']])
```

Versioning
----------

[](#versioning)

monolog-extra-bundle follows [semantic versioning](https://semver.org/). In short the scheme is MAJOR.MINOR.PATCH where

1. MAJOR is bumped when there is a breaking change,
2. MINOR is bumped when a new feature is added in a backward-compatible way,
3. PATCH is bumped when a bug is fixed in a backward-compatible way.

Versions bellow 1.0.0 are considered experimental and breaking changes may occur at any time.

Contributing
------------

[](#contributing)

Contributions are welcomed! There are many ways to contribute, and we appreciate all of them. Here are some of the major ones:

- [Bug Reports](https://git.chaplean.coop/open-source/bundle/monolog-extra-bundle/issues): While we strive for quality software, bugs can happen and we can't fix issues we're not aware of. So please report even if you're not sure about it or just want to ask a question. If anything the issue might indicate that the documentation can still be improved!
- [Feature Request](https://git.chaplean.coop/open-source/bundle/monolog-extra-bundle/issues): You have a use case not covered by the current api? Want to suggest a change or add something? We'd be glad to read about it and start a discussion to try to find the best possible solution.
- [Pull Request](https://git.chaplean.coop/open-source/bundle/monolog-extra-bundle/merge_requests): Want to contribute code or documentation? We'd love that! If you need help to get started, GitHub as [documentation](https://help.github.com/articles/about-pull-requests/) on pull requests. We use the ["fork and pull model"](https://help.github.com/articles/about-collaborative-development-models/) were contributors push changes to their personnal fork and then create pull requests to the main repository. Please make your pull requests against the `master` branch.

As a reminder, all contributors are expected to follow our [Code of Conduct](CODE_OF_CONDUCT.md).

Hacking
-------

[](#hacking)

You might find the following commands usefull when hacking on this project:

```
# Install dependencies
composer install

# Run tests
bin/phpunit
```

License
-------

[](#license)

monolog-extra-bundle is distributed under the terms of the MIT license.

See [LICENSE](LICENSE.md) for details.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

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

2543d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6bfb5e4a3dde826e4cd3f92d24fdfbdce1415c77f3edd38fc3420b4988977e13?d=identicon)[HugoDumazeau](/maintainers/HugoDumazeau)

![](https://www.gravatar.com/avatar/8084ee0162a85df3b3f49230b8c0dde81108195caa541bb00642cbd050e88b25?d=identicon)[hudumazeau](/maintainers/hudumazeau)

![](https://www.gravatar.com/avatar/75b46ff5a3d9bc9b04e9a3e571152c2e562dd71ef4bde0a048bea1d0567e97d0?d=identicon)[mdevlamynck](/maintainers/mdevlamynck)

![](https://www.gravatar.com/avatar/7989bd2ecb7be555081aa80dd87b63e52186fd6eb742d59b8564a26d27873eae?d=identicon)[chaplean](/maintainers/chaplean)

---

Tags

loggermonologsymfony

### Embed Badge

![Health badge](/badges/chaplean-monolog-extra-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/chaplean-monolog-extra-bundle/health.svg)](https://phpackages.com/packages/chaplean-monolog-extra-bundle)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[contao/manager-bundle

Provides the Contao Managed Edition

181.3M61](/packages/contao-manager-bundle)

PHPackages © 2026

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