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

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

webstasolutions/laravel-loki-logging
====================================

Logging to Loki for Laravel (PHP 8)

0.1.0(4y ago)175PHPPHP ^8.0

Since Jul 29Pushed 4y ago1 watchersCompare

[ Source](https://github.com/webstasolutions/laravel-loki-logging)[ Packagist](https://packagist.org/packages/webstasolutions/laravel-loki-logging)[ RSS](/packages/webstasolutions-laravel-loki-logging/feed)WikiDiscussions master Synced 3w ago

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

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

[](#laravel-loki-logging)

*Logging to Loki for Laravel*
*Fork *

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

25

—

LowBetter than 36% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

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

Every ~438 days

Total

2

Last Release

1720d ago

PHP version history (2 changes)0.0.1PHP ^7.0

0.1.0PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/f55e62932d1df8a7ed651325ebec393903811e6ea1704320a9a01be573d14f4d?d=identicon)[jan.blaha.websta](/maintainers/jan.blaha.websta)

---

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)")[![janblahawebsta](https://avatars.githubusercontent.com/u/85996165?v=4)](https://github.com/janblahawebsta "janblahawebsta (2 commits)")

### Embed Badge

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

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

###  Alternatives

[spatie/laravel-health

Monitor the health of a Laravel application

87411.3M153](/packages/spatie-laravel-health)[craftcms/cms

Craft CMS

3.6k3.6M2.9k](/packages/craftcms-cms)[laravel/ai

The official AI SDK for Laravel.

9782.1M162](/packages/laravel-ai)[illuminate/log

The Illuminate Log package.

6225.0M602](/packages/illuminate-log)[honeybadger-io/honeybadger-laravel

Honeybadger Laravel integration

431.3M](/packages/honeybadger-io-honeybadger-laravel)[tallstackui/tallstackui

TallStackUI is a powerful suite of Blade components that elevate your workflow of Livewire applications.

721160.4k12](/packages/tallstackui-tallstackui)

PHPackages © 2026

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