PHPackages                             yexk/laravel-loki-logger - 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. yexk/laravel-loki-logger

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

yexk/laravel-loki-logger
========================

Laravel package for logging with Loki

v1.0.0(4y ago)11.5kGPL-3.0-onlyPHPPHP ^7.0|^8.0

Since Sep 22Pushed 4y agoCompare

[ Source](https://github.com/yexk/laravel-loki-logger)[ Packagist](https://packagist.org/packages/yexk/laravel-loki-logger)[ RSS](/packages/yexk-laravel-loki-logger/feed)WikiDiscussions main Synced 1mo ago

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

Laravel Loki Logger
===================

[](#laravel-loki-logger)

*Laravel package for logging with Loki*

Forked from

Usage
-----

[](#usage)

1. Install this package: `composer require yexk/laravel-loki-logger`
2. Publish the configuration: `php artisan vendor:publish --tag=laravel-loki-logger
3. Create a new log channel in `config/logging.php`: ```
    'loki' => [
      'driver' => 'monolog',
      'handler' => LokiLogger::class,
    ]
    ```
4. Configure at least the `LOG_CHANNEL`, `LOG_USERNAME` and `LOG_PASSWORD`
    1. Ensure `APP_NAME` is configured appropriately. If this value cannot be changed, use `LOG_APP`.
    2. Optionally configure `LOG_SERVER` and `LOG_FORMAT`
5. Configure the `loki:persist` job to run periodically in your schedule. We recommend every minute, but feel free to reduce this.
6. `Log::info('Hello Loki!');`

Configuration
-------------

[](#configuration)

The behaviour of the logger can be adjusted with the config options below.

KeyDescriptionDefault`context`Extra variables to be added as labels to the message. Variable substitutions are available.`application`: `env('LOG_APPLICATION')`
`type`: `'{level_name}'``format`How log messages should be formatted. Variable substitutions are available.`[{level_name}] {message}``loki.server`The loki server to which data should be logged.`https://localhost``loki.username`Username for HTTP basic authentication, can be left empty.Env-variable `LOG_USERNAME``loki.password`Password for HTTP basic authentication, can be left empty.Env-variable `LOG_PASSWORD`

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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

1693d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/19749521?v=4)[Yexk\_M](/maintainers/yexk)[@yexk](https://github.com/yexk)

---

Top Contributors

[![yexk](https://avatars.githubusercontent.com/u/19749521?v=4)](https://github.com/yexk "yexk (2 commits)")[![publiux](https://avatars.githubusercontent.com/u/2847188?v=4)](https://github.com/publiux "publiux (1 commits)")

### Embed Badge

![Health badge](/badges/yexk-laravel-loki-logger/health.svg)

```
[![Health](https://phpackages.com/badges/yexk-laravel-loki-logger/health.svg)](https://phpackages.com/packages/yexk-laravel-loki-logger)
```

###  Alternatives

[spatie/laravel-health

Monitor the health of a Laravel application

85810.0M83](/packages/spatie-laravel-health)[honeybadger-io/honeybadger-laravel

Honeybadger Laravel integration

431.2M](/packages/honeybadger-io-honeybadger-laravel)[yadahan/laravel-authentication-log

Laravel Authentication Log provides authentication logger and notification for Laravel.

416632.8k5](/packages/yadahan-laravel-authentication-log)[inspector-apm/inspector-laravel

Code Execution Monitoring, built for developers.

2332.0M2](/packages/inspector-apm-inspector-laravel)[illuminate/log

The Illuminate Log package.

6224.3M518](/packages/illuminate-log)[freshbitsweb/laravel-log-enhancer

Make debugging easier by adding more data to your laravel logs

346569.0k](/packages/freshbitsweb-laravel-log-enhancer)

PHPackages © 2026

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