PHPackages                             whchi/laravel-kafkalogger - 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. whchi/laravel-kafkalogger

Abandoned → [whchi/laravel-kafkalogger](/?search=whchi%2Flaravel-kafkalogger)ArchivedLibrary[Logging &amp; Monitoring](/categories/logging)

whchi/laravel-kafkalogger
=========================

send log direct into kafka via laravel

0.0.2(6y ago)10MITPHP

Since Nov 14Pushed 6y ago1 watchersCompare

[ Source](https://github.com/whchi/laravel-kafkalogger)[ Packagist](https://packagist.org/packages/whchi/laravel-kafkalogger)[ RSS](/packages/whchi-laravel-kafkalogger/feed)WikiDiscussions master Synced yesterday

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

在 Laravel 裡使用 Log Facade 的直接送到 kafka, ELK format

安裝步驟
----

[](#安裝步驟)

1. composer

```
composer require whchi/laravel-kafkalogger "0.0.1"
```

2. publish vendor

```
php artisan vendor:publish --provider="Whchi\KafkaLogger\KafkaLogServiceProvider"
```

### log settings

[](#log-settings)

- in `config/logging.php` add

```
    'channels' => [
        ...
        'kafka' => [
            'driver' => 'custom',
            'via' => \App\Logging\KafkaHandler::class,
        ],
        ...
    ]
```

- add file `app/Logging/KafkaHandler.php`

```
namespace App\Logging;

use Monolog\Logger;

class KafkaHandler
{
    public function __invoke()
    {
        $logger = new Logger('custom');
        $logger->pushHandler(resolve('KafkaLogger'));
        return $logger;
    }
}
```

- edit `.env`

```
LOG_CHANNEL=kafka
```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity48

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

Every ~0 days

Total

2

Last Release

2372d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2dc92c7e48b95b84282bf4c3bc9f04eef31bd8117484fe862812082c55217026?d=identicon)[whchi](/maintainers/whchi)

---

Top Contributors

[![whchi](https://avatars.githubusercontent.com/u/11798731?v=4)](https://github.com/whchi "whchi (2 commits)")[![tingchungk](https://avatars.githubusercontent.com/u/43468656?v=4)](https://github.com/tingchungk "tingchungk (1 commits)")

### Embed Badge

![Health badge](/badges/whchi-laravel-kafkalogger/health.svg)

```
[![Health](https://phpackages.com/badges/whchi-laravel-kafkalogger/health.svg)](https://phpackages.com/packages/whchi-laravel-kafkalogger)
```

###  Alternatives

[overtrue/laravel-query-logger

A dev tool to log all queries for laravel application.

413307.5k6](/packages/overtrue-laravel-query-logger)[guanguans/laravel-exception-notify

Monitor exception and report to the notification channels(Log、Mail、AnPush、Bark、Chanify、DingTalk、Discord、Gitter、GoogleChat、IGot、Lark、Mattermost、MicrosoftTeams、NowPush、Ntfy、Push、Pushback、PushBullet、PushDeer、PushMe、Pushover、PushPlus、QQ、RocketChat、ServerChan、ShowdocPush、SimplePush、Slack、Telegram、WeWork、WPush、XiZhi、YiFengChuanHua、ZohoCliq、ZohoCliqWebHook、Zulip).

14642.7k1](/packages/guanguans-laravel-exception-notify)

PHPackages © 2026

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