PHPackages                             uniplaces/uniplaces-monolog-extension - 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. uniplaces/uniplaces-monolog-extension

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

uniplaces/uniplaces-monolog-extension
=====================================

logger processors for uniplaces standards

1.0.0(8y ago)01.8kMITPHPPHP ^7.0

Since Dec 7Pushed 8y ago20 watchersCompare

[ Source](https://github.com/uniplaces/uniplaces-monolog-extension)[ Packagist](https://packagist.org/packages/uniplaces/uniplaces-monolog-extension)[ RSS](/packages/uniplaces-uniplaces-monolog-extension/feed)WikiDiscussions master Synced yesterday

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

[![Build Status](https://camo.githubusercontent.com/1de2f42dd2ad6a4184fd2e26f91ba050aae6c112bb968aed651535f803f95799/68747470733a2f2f7472617669732d63692e6f72672f756e69706c616365732f756e69706c616365732d6d6f6e6f6c6f672d657874656e73696f6e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/uniplaces/uniplaces-monolog-extension)

Uniplaces monolog extension
===========================

[](#uniplaces-monolog-extension)

Package to support logging standards at uniplaces ([www.uniplaces.com](http://www.uniplaces.com)). The first only define a processor to decorate log with specific fields used to create filters.

Prerequisites
-------------

[](#prerequisites)

This package needs php 7.0 or a higher version and is meant to run in a symfony 4 application. Also, is supposed to have composer in the machine where is the project is going to be mounted.

Installing
----------

[](#installing)

To install it locally (for developing purpose) run:

```
$ make setup
```

In order to use the common processor you have to register it in the service.yaml:

```
    monolog.common_processor:
        class: Uniplaces\Monolog\Processors\CommonProcessor
        arguments:
            - "@request_stack"
            - '%env(APP_ID)%'
            - "%env(GIT_HASH)%"
            - "%kernel.environment%"
        tags:
            - { name: monolog.processor, method: processRecord }
```

The processor expextes `APP_ID` and `GIT_HASH` to be defined in the environment.

Also define a json formatter in order to be able to add the fields the log must be in json format; because of this you have to register `Monolog\Formatter\JsonFormatter` optionally you can add a coll to includeStacktraces to add stack trace.

```
    monolog.json_formatter:
        class: Monolog\Formatter\JsonFormatter
        calls:
            - [includeStacktraces]
```

Running the tests
-----------------

[](#running-the-tests)

```
$ make tests
```

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

[](#contributing)

Please read [CONTRIBUTING.md](https://gist.github.com/PurpleBooth/b24679402957c63ec426) for details on our code of conduct, and the process for submitting pull requests to us.

Authors
-------

[](#authors)

Made with ❤️ at [uniplaces](www.uniplaces.com)

License
-------

[](#license)

This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity58

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

3079d ago

### Community

Maintainers

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

---

Top Contributors

[![raffo0707](https://avatars.githubusercontent.com/u/12081460?v=4)](https://github.com/raffo0707 "raffo0707 (8 commits)")

---

Tags

loggingmonologphpprocessorsymfony4

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/uniplaces-uniplaces-monolog-extension/health.svg)

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

###  Alternatives

[spatie/flare-client-php

Send PHP errors to Flare

177148.0M15](/packages/spatie-flare-client-php)[nelmio/js-logger-bundle

Adds logging of JS errors in your Symfony application

1761.2M](/packages/nelmio-js-logger-bundle)[honeybadger-io/honeybadger-php

Honeybadger PHP library

381.5M4](/packages/honeybadger-io-honeybadger-php)[bugsnag/bugsnag-symfony

Official BugSnag notifier for Symfony applications.

453.0M3](/packages/bugsnag-bugsnag-symfony)

PHPackages © 2026

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