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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. felipeteko/monolog-loki

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

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

Monolog handler to send logs directly to Grafana Loki

v1.0.0(1y ago)06531MITPHP

Since Jun 5Pushed 1y 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 3w ago

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

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

30

—

LowBetter than 62% of packages

Maintenance48

Moderate activity, may be stable

Popularity19

Limited adoption so far

Community10

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

386d 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)
```

###  Alternatives

[symfony/monolog-bridge

Provides integration for Monolog with various Symfony components

2.6k198.8M328](/packages/symfony-monolog-bridge)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.6k38.2k](/packages/matomo-matomo)[spatie/flare-client-php

Send PHP errors to Flare

177156.9M21](/packages/spatie-flare-client-php)[illuminate/log

The Illuminate Log package.

6225.0M602](/packages/illuminate-log)[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k12](/packages/tempest-framework)[grkamil/laravel-telegram-logging

Send logs to Telegram chat via Telegram bot

161493.0k](/packages/grkamil-laravel-telegram-logging)

PHPackages © 2026

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