PHPackages                             suver/laravel-gelf-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. suver/laravel-gelf-logger

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

suver/laravel-gelf-logger
=========================

A package to send logs to a gelf compatible backend like graylog

1.0.1(9y ago)030MITPHPPHP &gt;=5.6

Since May 5Pushed 9y ago1 watchersCompare

[ Source](https://github.com/suver/laravel-gelf-logger)[ Packagist](https://packagist.org/packages/suver/laravel-gelf-logger)[ RSS](/packages/suver-laravel-gelf-logger/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (2)Dependencies (4)Versions (3)Used By (0)

Form from [![Build Status](https://camo.githubusercontent.com/8ed336c426efb2e82dc2bc3aa6bca00ff64f53cfb4296a3466873a963d9011fc/68747470733a2f2f7472617669732d63692e6f72672f68656469692f6c61726176656c2d67656c662d6c6f676765722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/hedii/laravel-gelf-logger)

Laravel Gelf Logger
===================

[](#laravel-gelf-logger)

A package to send [gelf](http://docs.graylog.org/en/2.1/pages/gelf.html) logs to a gelf compatible backend like graylog. It is a laravel wrapper for [bzikarsky/gelf-php](https://github.com/bzikarsky/gelf-php) package.

Table of contents
-----------------

[](#table-of-contents)

- [Table of contents](#table-of-contents)
- [Installation](#installation)
- [Usage](#usage)
    - [Example](#example)
- [Testing](#testing)
- [License](#license)

Installation
------------

[](#installation)

Install via [composer](https://getcomposer.org/doc/00-intro.md)

```
composer require suver/laravel-gelf-logger
```

Add it to your providers array in `config/app.php`:

```
suver\LaravelGelfLogger\LaravelGelfLoggerServiceProvider::class
```

If you want to use the facade, add it to your aliases array in `config/app.php`:

```
'GelfLogger' => \suver\LaravelGelfLogger\Facades\GelfLogger::class
```

Publish the configuration file:

```
php artisan vendor:publish --provider="suver\LaravelGelfLogger\LaravelGelfLoggerServiceProvider"
```

See the content of the published configuration file in `config/gelf-logger.php` if you want to change the defaults.

```
/**
 * The ip address of the log server. If the value below is null,
 * the default value '127.0.0.1' will be used.
 */
'host' => null,

/**
 * The udp port of the log server. If the value below is null,
 * the default value 12201 will be used.
 */
'port' => null
```

Usage
-----

[](#usage)

See the [bzikarsky/gelf-php](https://github.com/bzikarsky/gelf-php/tree/master/examples) examples in his repo to find the available methods for the `gelf()` function.

### Example

[](#example)

```
gelf()->alert('There was a foo in bar', ['foo' => 'bar']);
```

```
try {
    throw new \Exception('test exception');
} catch (\Exception $e) {
    gelf()->emergency('Exception example', [
        'exception' => $e
    ]);
}
```

Testing
-------

[](#testing)

```
composer test

```

License
-------

[](#license)

laravel-gelf-logger is released under the MIT Licence. See the bundled [LICENSE](https://github.com/suver/laravel-gelf-logger/blob/master/LICENSE.md) file for details.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% 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 ~5 days

Total

2

Last Release

3339d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ccd15c217e2d921f6a654ee6856e8ac7f3536ac88f31e3bf75d10d697a05ffcb?d=identicon)[suver](/maintainers/suver)

---

Top Contributors

[![hedii](https://avatars.githubusercontent.com/u/5358048?v=4)](https://github.com/hedii "hedii (9 commits)")[![butkoden](https://avatars.githubusercontent.com/u/494321?v=4)](https://github.com/butkoden "butkoden (3 commits)")

---

Tags

phplaravelgrayloggelflaravel-gelfsuver

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/suver-laravel-gelf-logger/health.svg)

```
[![Health](https://phpackages.com/badges/suver-laravel-gelf-logger/health.svg)](https://phpackages.com/packages/suver-laravel-gelf-logger)
```

###  Alternatives

[hedii/laravel-gelf-logger

A Laravel package to send logs to a gelf compatible backend like graylog

1363.6M12](/packages/hedii-laravel-gelf-logger)[inspector-apm/inspector-laravel

Code Execution Monitoring, built for developers.

2382.1M5](/packages/inspector-apm-inspector-laravel)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M341](/packages/psalm-plugin-laravel)[glushkovds/phpclickhouse-laravel

Adapter of the most popular library https://github.com/smi2/phpClickHouse to Laravel

2051.5M2](/packages/glushkovds-phpclickhouse-laravel)[spatie/laravel-flare

Send Laravel errors to Flare

111.4M6](/packages/spatie-laravel-flare)

PHPackages © 2026

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