PHPackages                             zae/monolog-publish - 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. zae/monolog-publish

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

zae/monolog-publish
===================

A publisher handler for monolog

0.0.2(11y ago)137MITPHP

Since May 14Pushed 11y ago1 watchersCompare

[ Source](https://github.com/Zae/monolog-publish)[ Packagist](https://packagist.org/packages/zae/monolog-publish)[ RSS](/packages/zae-monolog-publish/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (4)Versions (3)Used By (0)

monolog-publish
===============

[](#monolog-publish)

[![Latest Version](https://camo.githubusercontent.com/36e047cadc6f77b710aebf86ad63d61b5e17ce61bea17a0423618ff9609fb0ef/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f5a61652f6d6f6e6f6c6f672d7075626c6973682e7376673f7374796c653d666c61742d737175617265)](https://github.com/Zae/monolog-publish/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/a63c0acafe4e084840e0a902542bcc3e6452e1a1df7009e735177c1675f2c539/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f5a61652f6d6f6e6f6c6f672d7075626c6973682f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/Zae/monolog-publish)[![Total Downloads](https://camo.githubusercontent.com/5a5d3888bdb99913ecea83b9428f8c2620df106514e9b78e22792e1e949cca8d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f5a61652f6d6f6e6f6c6f672d7075626c6973682e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/Zae/monolog-publish)

A simple Monolog handler that can be used to 'publish' the errors to a subscriber.

Publishers
----------

[](#publishers)

Available publishers are:

- RedisPublisher

Install
-------

[](#install)

Via Composer

```
$ composer require zae/monolog-publish
```

Usage
-----

[](#usage)

```
use Monolog\Logger;
use Monolog\Handler\StreamHandler;
use Zae\Monolog\Publish\Handler\PublishHandler;
use Zae\Monolog\Publish\Publisher\RedisPublisher;

// create a log channel
$log = new Logger('name');
$log->pushHandler(new PublishHandler(new RedisPublisher('log', Logger::WARNING)));

// add records to the log
$log->addWarning('Foo');
$log->addError('Bar');
```

Testing
-------

[](#testing)

```
$ phpunit
```

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

[](#contributing)

Contributions are welcome via pull requests on github.

Mostly new publishers are needed.

Credits
-------

[](#credits)

- [Ezra Pool](https://github.com/Zae)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

Every ~0 days

Total

2

Last Release

4022d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7195cfa9749ba405e65f0ff1ef74293f2d518bea06b2588d04179baad63b3e8c?d=identicon)[Zae](/maintainers/Zae)

---

Top Contributors

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

---

Tags

redispublishmonolog

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/zae-monolog-publish/health.svg)

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

###  Alternatives

[maxbanton/cwh

AWS CloudWatch Handler for Monolog library

42515.3M27](/packages/maxbanton-cwh)[inpsyde/wonolog

Monolog-based logging package for WordPress.

183617.9k7](/packages/inpsyde-wonolog)[phpnexus/cwh

AWS CloudWatch Handler for Monolog library

393.2M7](/packages/phpnexus-cwh)[logtail/monolog-logtail

Logtail handler for Monolog

233.2M3](/packages/logtail-monolog-logtail)[kdyby/monolog

Integration of Monolog into Nette Framework

33684.0k10](/packages/kdyby-monolog)[inpsyde/logzio-monolog

Logz.io integration for Monolog

191.2M1](/packages/inpsyde-logzio-monolog)

PHPackages © 2026

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