PHPackages                             er1z/monolog-loki-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. er1z/monolog-loki-handler

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

er1z/monolog-loki-handler
=========================

Monolog handler to publish events directly to Loki

0.1-ALPHA(6y ago)071MITPHPPHP ^7.2

Since Dec 29Pushed 6y ago1 watchersCompare

[ Source](https://github.com/er1z/monolog-loki-handler)[ Packagist](https://packagist.org/packages/er1z/monolog-loki-handler)[ RSS](/packages/er1z-monolog-loki-handler/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (2)Used By (0)

monolog-loki-handler
====================

[](#monolog-loki-handler)

Monolog handler to publish events directly to Loki.

examples
--------

[](#examples)

See `examples` directory.

how messages are formatted
--------------------------

[](#how-messages-are-formatted)

- Context variables are parsed to logfmt, eg. logging `message` with `['var'=>'val']` will produce `message var=val`, any non-scalar values are JSON-encoded,
- Labels for Loki are defined by `extra` fields.

default labels:
---------------

[](#default-labels)

- `channel`
- `level`
- `level_name`

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 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

2322d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1813302?v=4)[Przemysław eRIZ Pawliczuk](/maintainers/er1z)[@er1z](https://github.com/er1z)

---

Top Contributors

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

---

Tags

logloggingmonologloki

### Embed Badge

![Health badge](/badges/er1z-monolog-loki-handler/health.svg)

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

###  Alternatives

[inpsyde/wonolog

Monolog-based logging package for WordPress.

183617.9k6](/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)[mero/telegram-handler

Monolog handler to send log by Telegram

36113.3k](/packages/mero-telegram-handler)[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)
