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(11mo ago)039↓100%1MITPHP

Since Jun 5Pushed 11mo 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 1mo 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

28

—

LowBetter than 54% of packages

Maintenance51

Moderate activity, may be stable

Popularity10

Limited adoption so far

Community8

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

341d 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.6k189.7M258](/packages/symfony-monolog-bridge)[rollbar/rollbar

Monitors errors and exceptions and reports them to Rollbar

33723.7M82](/packages/rollbar-rollbar)[illuminate/log

The Illuminate Log package.

6224.3M518](/packages/illuminate-log)[honeybadger-io/honeybadger-php

Honeybadger PHP library

381.5M4](/packages/honeybadger-io-honeybadger-php)[graycore/magento2-stdlogging

A Magento 2 module that changes all logging handlers to stdout

2382.6k](/packages/graycore-magento2-stdlogging)

PHPackages © 2026

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