PHPackages                             devcake-deventer/laravel-loki-logging - 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. devcake-deventer/laravel-loki-logging

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

devcake-deventer/laravel-loki-logging
=====================================

Logging to Loki for Laravel

0.0.1(5y ago)154.9k↓50%14[1 issues](https://github.com/devcake-deventer/laravel-loki-logging/issues)[1 PRs](https://github.com/devcake-deventer/laravel-loki-logging/pulls)PHPPHP ^7.0

Since Jul 29Pushed 3y ago2 watchersCompare

[ Source](https://github.com/devcake-deventer/laravel-loki-logging)[ Packagist](https://packagist.org/packages/devcake-deventer/laravel-loki-logging)[ RSS](/packages/devcake-deventer-laravel-loki-logging/feed)WikiDiscussions master Synced 1mo ago

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

Laravel Loki Logging
====================

[](#laravel-loki-logging)

*Logging to Loki for Laravel*

Usage
-----

[](#usage)

1. Install this package: `composer require devcake-deventer/laravel-loki-logging`
2. Publish the configuration: `php artisan vendor:publish --provider=Devcake\\LaravelLokiLogging\\L3ServiceProvider`
3. Create a new log channel in `config/logging.php`: ```
    'loki' => [
      'driver' => 'monolog',
      'handler' => L3Logger::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://logging.devcake.app/loki``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

29

—

LowBetter than 59% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 72.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

2119d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/81835593?v=4)[Taupe](/maintainers/Taupe)[@Taupe](https://github.com/Taupe)

![](https://www.gravatar.com/avatar/1de9317e0fc8687dfcff32fac1fd5527293ac23e9c7ad5297f6a3e98e8f4ea40?d=identicon)[m.slinkman](/maintainers/m.slinkman)

---

Top Contributors

[![rdemorais](https://avatars.githubusercontent.com/u/4343744?v=4)](https://github.com/rdemorais "rdemorais (8 commits)")[![CerebralFart](https://avatars.githubusercontent.com/u/11133931?v=4)](https://github.com/CerebralFart "CerebralFart (3 commits)")

### Embed Badge

![Health badge](/badges/devcake-deventer-laravel-loki-logging/health.svg)

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

###  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)
