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 4w ago

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 57% 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

3224d ago

Major Versions

0.1.0 → 1.0.02017-10-11

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/12793108?v=4)[Miklos Boros](/maintainers/cherubmiki)[@cherubmiki](https://github.com/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

[logtail/monolog-logtail

Logtail handler for Monolog

243.8M3](/packages/logtail-monolog-logtail)[jacklul/monolog-telegram

Monolog handler that sends logs through Telegram bot to any chat in HTML format

2573.2k2](/packages/jacklul-monolog-telegram)[mhcg/monolog-wp-cli

Extension for Monolog to support outputting to WP-CLI (The WordPress command line interface) when running wp command lines.

10114.8k1](/packages/mhcg-monolog-wp-cli)[alexandre-daubois/monolog-processor-collection

A collection of Monolog processors

1317.7k](/packages/alexandre-daubois-monolog-processor-collection)

PHPackages © 2026

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