PHPackages                             wyrihaximus/monolog-formatted-psr-handler - 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. wyrihaximus/monolog-formatted-psr-handler

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

wyrihaximus/monolog-formatted-psr-handler
=========================================

Passes `formatted` instead of `message` to the PSR-3 logger

3.2.0(8mo ago)2176.1k↑830.6%[1 issues](https://github.com/WyriHaximus/php-monolog-formatted-psr-handler/issues)[2 PRs](https://github.com/WyriHaximus/php-monolog-formatted-psr-handler/pulls)1MITMakefilePHP ^8.4CI passing

Since Jun 26Pushed 1w ago1 watchersCompare

[ Source](https://github.com/WyriHaximus/php-monolog-formatted-psr-handler)[ Packagist](https://packagist.org/packages/wyrihaximus/monolog-formatted-psr-handler)[ GitHub Sponsors](https://github.com/WyriHaximus)[ RSS](/packages/wyrihaximus-monolog-formatted-psr-handler/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (8)Dependencies (5)Versions (19)Used By (1)

Formatted [PSR-3](http://www.php-fig.org/psr/psr-3/) handler for Monolog
========================================================================

[](#formatted-psr-3-handler-for-monolog)

[![Continuous Integration](https://github.com/wyrihaximus/php-monolog-formatted-psr-handler/workflows/Continuous%20Integration/badge.svg)](https://github.com/wyrihaximus/php-monolog-formatted-psr-handler/workflows/Continuous%20Integration/badge.svg)[![Latest Stable Version](https://camo.githubusercontent.com/5c83431e626d56154042e94092aa1fa4daf5f79a8cb0168cfefbedc71152cc19/68747470733a2f2f706f7365722e707567782e6f72672f77797269686178696d75732f6d6f6e6f6c6f672d666f726d61747465642d7073722d68616e646c65722f762f737461626c652e706e67)](https://packagist.org/packages/wyrihaximus/monolog-formatted-psr-handler)[![Total Downloads](https://camo.githubusercontent.com/885338dbccac465795ba0e3260d3a26ca276823ade97cc89765bdc5a35d9483c/68747470733a2f2f706f7365722e707567782e6f72672f77797269686178696d75732f6d6f6e6f6c6f672d666f726d61747465642d7073722d68616e646c65722f646f776e6c6f6164732e706e67)](https://packagist.org/packages/wyrihaximus/monolog-formatted-psr-handler/stats)[![Type Coverage](https://camo.githubusercontent.com/604a43a2eeeeed6bbbafe2bcb62dbfa5f90d3c4b1279ecc2cc1bd3a3a8f16cd4/68747470733a2f2f73686570686572642e6465762f6769746875622f57797269486178696d75732f7068702d6d6f6e6f6c6f672d666f726d61747465642d7073722d68616e646c65722f636f7665726167652e737667)](https://shepherd.dev/github/WyriHaximus/php-monolog-formatted-psr-handler)[![License](https://camo.githubusercontent.com/fbb9d4e22df117d02655e95a52e5b6823754f012a2e7a5f3b90c604c4cbc8425/68747470733a2f2f706f7365722e707567782e6f72672f77797269686178696d75732f6d6f6e6f6c6f672d666f726d61747465642d7073722d68616e646c65722f6c6963656e73652e706e67)](https://packagist.org/packages/wyrihaximus/monolog-formatted-psr-handler)

### Installation

[](#installation)

To install via [Composer](http://getcomposer.org/), use the command below, it will automatically detect the latest version and bind it with `^`.

```
composer require wyrihaximus/monolog-formatted-psr-handler

```

Difference with Monolog's PsrHandler
------------------------------------

[](#difference-with-monologs-psrhandler)

Where Monolog's `PsrHandler` uses the `message` from `$record`, this handlers uses `formatted` and falls back to `message`.

Usage
-----

[](#usage)

```
$psrHandler = new PsrLogger(); // Your desired PSR-3 logger
$handler = new FormattedPsrHandler($psrHandler);
$handler->setFormatter(new Formatter()); // Your desired formatter
$monolog->pushHandler($handler);
```

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

License
-------

[](#license)

Copyright 2025 [Cees-Jan Kiewiet](http://wyrihaximus.net/)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

58

—

FairBetter than 98% of packages

Maintenance71

Regular maintenance activity

Popularity36

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity89

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 54.8% 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

Every ~432 days

Recently: every ~343 days

Total

8

Last Release

265d ago

Major Versions

1.2.0 → 2.0.02022-01-08

2.0.1 → 3.0.02023-08-02

PHP version history (6 changes)1.0.0PHP ^7.0

1.1.0PHP ^7.2

2.0.0PHP ^8

3.0.0PHP ^8.2

3.1.0PHP ^8.3

3.2.0PHP ^8.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/147145?v=4)[Cees-Jan Kiewiet](/maintainers/WyriHaximus)[@WyriHaximus](https://github.com/WyriHaximus)

---

Top Contributors

[![WyriHaximus](https://avatars.githubusercontent.com/u/147145?v=4)](https://github.com/WyriHaximus "WyriHaximus (69 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (16 commits)")[![dependabot-support](https://avatars.githubusercontent.com/u/112581971?v=4)](https://github.com/dependabot-support "dependabot-support (14 commits)")[![renovate-runner[bot]](https://avatars.githubusercontent.com/u/147145?v=4)](https://github.com/renovate-runner[bot] "renovate-runner[bot] (12 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (11 commits)")[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (4 commits)")

---

Tags

hacktoberfestmonologphppsr-3

### Embed Badge

![Health badge](/badges/wyrihaximus-monolog-formatted-psr-handler/health.svg)

```
[![Health](https://phpackages.com/badges/wyrihaximus-monolog-formatted-psr-handler/health.svg)](https://phpackages.com/packages/wyrihaximus-monolog-formatted-psr-handler)
```

###  Alternatives

[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[laravel/framework

The Laravel Framework.

34.8k543.8M20.1k](/packages/laravel-framework)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[illuminate/log

The Illuminate Log package.

6225.3M624](/packages/illuminate-log)[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

85036.3k](/packages/flow-php-flow)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)

PHPackages © 2026

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