PHPackages                             proemergotech/prmrgt-monolog-formatter - 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. proemergotech/prmrgt-monolog-formatter

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

proemergotech/prmrgt-monolog-formatter
======================================

Custom Monolog formatter for extracting custom key-values from log context. Uses RFC3339/ISO8601 datetime with microseconds by default.

1.0.0(8y ago)03.3kMITPHPPHP &gt;=7.1.0

Since Oct 11Pushed 8y ago6 watchersCompare

[ Source](https://github.com/proemergotech/prmrgt-monolog-formatter)[ Packagist](https://packagist.org/packages/proemergotech/prmrgt-monolog-formatter)[ Docs](https://github.com/proemergotech/prmrgt-monolog-formatter)[ RSS](/packages/proemergotech-prmrgt-monolog-formatter/feed)WikiDiscussions master Synced yesterday

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

prmrgt-monolog-formatter
========================

[](#prmrgt-monolog-formatter)

A [custom Monolog formatter](https://github.com/proemergotech/prmrgt-monolog-formatter) for extracting custom key-values from log context. Uses RFC3339/ISO8601 datetime with microseconds by default.

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

[](#installation)

- Install via Composer

```
composer require proemergotech/prmrgt-monolog-formatter
```

Usage
-----

[](#usage)

This formatter can be added to a Monolog handler as any other formatter. Each logging handler uses a Formatter to format the record before logging it.

```
$handler = new Monolog\Handler\StreamHandler(env('LOG_STREAM', '/tmp/stdout.sock'), \Monolog\Logger::DEBUG);
$handler->setFormatter(new PrmrgtLogFormatter(['keyToExtract', 'otherKeyToExract], 'Y-m-d H:i:s'));
$monolog->pushHandler($handler);
```

You can find more information on handlers, formatters and processors in the official [Monolog documentation](https://github.com/Seldaek/monolog/blob/master/doc/02-handlers-formatters-processors.md).

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

[](#contributing)

See CONTRIBUTING.md file.

Credits
-------

[](#credits)

This package is developed by [Miklós Boros](https://github.com/cherubmiki/) at [Pro Emergotech Ltd.](https://github.com/proemergotech/).

License
-------

[](#license)

This project is released under the [MIT License](http://www.opensource.org/licenses/MIT).

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity61

Established project with proven stability

 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

Every ~2 days

Total

4

Last Release

3129d ago

Major Versions

0.1.0 → 1.0.02017-10-11

### Community

Maintainers

![](https://www.gravatar.com/avatar/2217621c447f28d53f930dd3097a8dc1c472985f4226008ad7ab6c5d698eb515?d=identicon)[cherubmiki](/maintainers/cherubmiki)

---

Top Contributors

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

---

Tags

logformattermonolog

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/proemergotech-prmrgt-monolog-formatter/health.svg)

```
[![Health](https://phpackages.com/badges/proemergotech-prmrgt-monolog-formatter/health.svg)](https://phpackages.com/packages/proemergotech-prmrgt-monolog-formatter)
```

###  Alternatives

[theorchard/monolog-cascade

Monolog extension to configure multiple loggers in the blink of an eye and access them from anywhere

1482.2M9](/packages/theorchard-monolog-cascade)[inpsyde/wonolog

Monolog-based logging package for WordPress.

183617.9k7](/packages/inpsyde-wonolog)[logtail/monolog-logtail

Logtail handler for Monolog

233.2M3](/packages/logtail-monolog-logtail)[inpsyde/logzio-monolog

Logz.io integration for Monolog

191.2M1](/packages/inpsyde-logzio-monolog)[mero/yii2-monolog

The Monolog integration for the Yii framework.

42186.1k](/packages/mero-yii2-monolog)[lefuturiste/monolog-discord-handler

A simple monolog handler for support Discord webhooks

34111.6k4](/packages/lefuturiste-monolog-discord-handler)

PHPackages © 2026

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