PHPackages                             nethergamesmc/liblokilogger - 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. nethergamesmc/liblokilogger

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

nethergamesmc/liblokilogger
===========================

Small and compact Grafana Loki logger for PocketMine-MP

83.5k2PHP

Since Jun 24Pushed 1y ago3 watchersCompare

[ Source](https://github.com/NetherGamesMC/libLokiLogger)[ Packagist](https://packagist.org/packages/nethergamesmc/liblokilogger)[ RSS](/packages/nethergamesmc-liblokilogger/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (2)Used By (0)

libLokiLogger
=============

[](#liblokilogger)

[Grafana Loki](https://grafana.com/oss/loki/) asynchronous logging utility for PocketMine-MP logger. It will log everything from any threads you want.

Getting started
===============

[](#getting-started)

You will have to initialize and start `LokiLoggerThread` process in your plugin, you can supply your own composer autoloader path if you are using php's composer.

Here is the code to start using the project:

```
# Start logging thread.
$lokiFactory = new LokiLoggerThread(COMPOSER_AUTOLOADER_PATH, 'http://localhost:1300', ['app' => 'lobby-1', 'region' => 'ap', 'server-id' => '1']);
$lokiFactory->start();

$this->getServer()->getAsyncPool()->addWorkerStartHook(function (int $workerId) use ($lokiFactory): void {
    $this->getServer()->getAsyncPool()->submitTaskToWorker(new LokiRegisterAsyncTask($lokiFactory), $workerId);
});

# Add an attachment to the server's logger, this will log everything in console into grafana loki.
Server::getInstance()->getLogger()->addAttachment(new LokiLoggerAttachment());
```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance29

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity24

Early-stage or recently created project

 Bus Factor1

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

### Community

Maintainers

![](https://www.gravatar.com/avatar/1dc7e298e7b0ae1fe3cf1ef281e589e988ed5ff452504193293545018f3bf54f?d=identicon)[larryTheCoder](/maintainers/larryTheCoder)

---

Top Contributors

[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (119 commits)")[![dries-c](https://avatars.githubusercontent.com/u/15795262?v=4)](https://github.com/dries-c "dries-c (7 commits)")[![larryTheCoder](https://avatars.githubusercontent.com/u/15889642?v=4)](https://github.com/larryTheCoder "larryTheCoder (6 commits)")

### Embed Badge

![Health badge](/badges/nethergamesmc-liblokilogger/health.svg)

```
[![Health](https://phpackages.com/badges/nethergamesmc-liblokilogger/health.svg)](https://phpackages.com/packages/nethergamesmc-liblokilogger)
```

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B11.5k](/packages/psr-log)[open-telemetry/api

API for OpenTelemetry PHP.

1941.5M276](/packages/open-telemetry-api)[open-telemetry/sdk

SDK for OpenTelemetry PHP.

2328.5M343](/packages/open-telemetry-sdk)

PHPackages © 2026

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