PHPackages                             pedromazala/fluentd-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. pedromazala/fluentd-logger

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

pedromazala/fluentd-logger
==========================

A Fluentd logging component for Laravel

v1.1.0(8y ago)023MITPHPPHP ~5.6|~7.0

Since Jul 6Pushed 8y ago1 watchersCompare

[ Source](https://github.com/pedromazala/fluentd-logger)[ Packagist](https://packagist.org/packages/pedromazala/fluentd-logger)[ Docs](https://github.com/pedromazala/laravel-fluentd-logger)[ RSS](/packages/pedromazala-fluentd-logger/feed)WikiDiscussions master Synced 3d ago

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

Fluentd Logger
==============

[](#fluentd-logger)

Sends application log messages and events to a fluentd log shipper.

Installation
============

[](#installation)

### Add the package via composer

[](#add-the-package-via-composer)

```
composer require tokenly/fluentd-logger

```

Usage with Laravel
------------------

[](#usage-with-laravel)

### Add the Service Provider

[](#add-the-service-provider)

Add the following to the `providers` array in your application config:

```
Tokenly\FluentdLogger\FluentdLoggerServiceProvider::class,

```

### Set the environment variables

[](#set-the-environment-variables)

```
APP_CODE=myapp
FLUENTD_ENABLED=true
FLUENTD_APPLOG_LEVEL=debug

# this makes the default Laravel monolog handler very quiet to not fill up the hard drive
APP_LOG_LEVEL=emergency

# for a local fluentd instance (recommended)
FLUENTD_SOCKET=/tmp/fluentd.sock

# if using a remote fluentd server (not recommended)
# FLUENTD_HOST=http://some.host
# FLUENTD_PORT=24224

```

### Standard Log Events

[](#standard-log-events)

Normal log events are sent to fluentd using standard Laravel logging functions

```
Illuminate\Support\Facades\Log::info("hello world");
```

### Measurement Events

[](#measurement-events)

To measure an event, use `fluent_measure($event, $data=[], $tags=null);`

```
fluent_measure('widget.created', ['widgets' => 4], ['username' => 'leroy']);
```

$data should contain numeric data. Think of $tags as additional indexes for that data. A timestamp is included by default.

Usage without Laravel
---------------------

[](#usage-without-laravel)

```
$fluent_logger = new \Tokenly\FluentdLogger\FluentLogger($host, $port);

# set a tag prefix
$app_code = 'myapp';
$environment = 'production';
$tag = 'applog.'.$app_code.'.'.$environment;

# set up monolog
$monolog->pushHandler(new \Tokenly\FluentdLogger\FluentMonologHandler($fluent_logger, $tag));

# set up fluent event logger for measurements
$measurement_logger = new \Tokenly\FluentdLogger\FluentEventLogger($fluent_logger, 'measure.'.$app_code.'.'.$environment);

# use monolog
$monolog->info("hi world");

# use measurements
$measurement_logger->log('widget.created', ['widgets' => 4], ['username' => 'leroy']);
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

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

###  Release Activity

Cadence

Every ~22 days

Total

7

Last Release

3103d ago

Major Versions

v0.3.0 → v1.0.02017-11-01

### Community

Maintainers

![](https://www.gravatar.com/avatar/7fe008752379f36c79e40cf56aec2f0a5fb5aab865a3a87cfbc3241f74149152?d=identicon)[pedromazala](/maintainers/pedromazala)

---

Top Contributors

[![deweller](https://avatars.githubusercontent.com/u/51414?v=4)](https://github.com/deweller "deweller (13 commits)")[![pedromazala](https://avatars.githubusercontent.com/u/2103162?v=4)](https://github.com/pedromazala "pedromazala (5 commits)")

---

Tags

loggingfluentd

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/pedromazala-fluentd-logger/health.svg)

```
[![Health](https://phpackages.com/badges/pedromazala-fluentd-logger/health.svg)](https://phpackages.com/packages/pedromazala-fluentd-logger)
```

###  Alternatives

[sentry/sentry-laravel

Laravel SDK for Sentry (https://sentry.io)

1.3k114.3M154](/packages/sentry-sentry-laravel)[rollbar/rollbar-laravel

Rollbar error monitoring integration for Laravel projects

14110.4M7](/packages/rollbar-rollbar-laravel)[marvinlabs/laravel-discord-logger

Logging to a discord channel in Laravel

2081.1M2](/packages/marvinlabs-laravel-discord-logger)[honeybadger-io/honeybadger-laravel

Honeybadger Laravel integration

431.2M](/packages/honeybadger-io-honeybadger-laravel)[ytake/laravel-fluent-logger

fluent logger for laravel and lumen

63541.6k1](/packages/ytake-laravel-fluent-logger)[dakatsuka/monolog-fluent-handler

Fluentd Handler for Monolog

12480.5k](/packages/dakatsuka-monolog-fluent-handler)

PHPackages © 2026

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