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

ActiveLibrary

felipeteko/monolog-loki
=======================

Monolog handler to send logs directly to Grafana Loki

v1.0.0(9mo ago)039↓100%MITPHP

Since Jun 5Pushed 9mo agoCompare

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

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

Monolog Loki Handler
====================

[](#monolog-loki-handler)

Este paquete te permite enviar logs directamente desde PHP a Grafana Loki usando Monolog, sin necesidad de Promtail.

Instalación
-----------

[](#instalación)

```
composer require felipeteko/monolog-loki
```

Uso
---

[](#uso)

```
use Monolog\Logger;
use TekoEstudio\Loki\LokiHandler;

$logger = new Logger('app');
$logger->pushHandler(new LokiHandler(
    'LOKI_URL',
    'LOKI_USERNAME',
    'LOKI_API_KEY',
    ['env' => 'prod']
));

$logger->info('Log enviado directamente a Grafana Loki');
```

Tests
-----

[](#tests)

```
composer install
composer test
```

Licencia
--------

[](#licencia)

MIT

###  Health Score

29

—

LowBetter than 63% of packages

Maintenance56

Moderate activity, may be stable

Popularity10

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity36

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

290d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1f9d25388c0659822e85d5101db70f0f2fffb1ead369d06c17e99da0edd9c8c7?d=identicon)[felipeteko](/maintainers/felipeteko)

---

Top Contributors

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

###  Code Quality

TestsPest

### Embed Badge

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

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

PHPackages © 2026

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