PHPackages                             tsfcorp/graylog - 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. tsfcorp/graylog

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

tsfcorp/graylog
===============

Library for creating and sending messages to Graylog

v0.0.10(5y ago)043MITPHPPHP &gt;=5.5.9|7.\*|8.\*CI failing

Since Nov 26Pushed 5y ago3 watchersCompare

[ Source](https://github.com/thesoftwarefarm/graylog)[ Packagist](https://packagist.org/packages/tsfcorp/graylog)[ RSS](/packages/tsfcorp-graylog/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (10)Dependencies (4)Versions (12)Used By (0)

Library for sending messages to Graylog - Laravel
=================================================

[](#library-for-sending-messages-to-graylog---laravel)

Fluent interface for composing and sending messages to Graylog.

This package was designed to work in a standalone project or in a cluster of projects which push messages into a master project/database which act as a collector.

If you use this package in cluster mode, make sure the process `php artisan graylog:dispatch-jobs` is running on master project. This can be kept alive with `supervisor`

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

[](#installation)

Require this package in your `composer.json` and update composer. Run the following command:

```
composer require tsfcorp/graylog
```

After updating composer, the service provider will automatically be registered and enabledusing Auto-Discovery

If your Laravel version is less than 5.5, make sure you add the service provider within `app.php` config file.

```
'providers' => [
    // ...
    TsfCorp\Graylog\GraylogServiceProvider::class,
];
```

Next step is to run the artisan command to install config file and optionally migration file. The command will guide you through the process.

```
php artisan graylog:install
```

Update `config/graylog.php` with your settings.

### Requirements

[](#requirements)

This package makes use of Laravel Queues/Jobs to send a message to Graylog. Make sure the queue system is configured properly

Usage Instructions
==================

[](#usage-instructions)

```
use TsfCorp\Graylog\GraylogMessage;

$message = (new GraylogMessage)
    ->setLevel(GraylogMessage::ERROR)
    ->setShortMessage('Short message.')
    ->setFullMessage('Full message.')
    ->setSubsystem('subsystem')
    ->setAdditional('custom_1', 'value_1')
    ->setAdditional('custom_2', 'value_2')
    ->setContext([
        'prop' => 'value'
    ]);
```

Use `enqueue()` method to save the message in database without sending to Graylog. Useful when you want to just save the message but delay sending. Or when `database_connection` config value is another database and sending is performed from there.

```
$message->enqueue();
```

Save the message and schedule a job to send the message to graylog

```
$message->enqueue()->dispatch();
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~92 days

Recently: every ~205 days

Total

10

Last Release

1891d ago

PHP version history (3 changes)v0.0.1PHP &gt;=7.0

v0.0.4PHP &gt;=5.5.9

v0.0.10PHP &gt;=5.5.9|7.\*|8.\*

### Community

Maintainers

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

---

Top Contributors

[![sescu10](https://avatars.githubusercontent.com/u/9623798?v=4)](https://github.com/sescu10 "sescu10 (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/tsfcorp-graylog/health.svg)

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

###  Alternatives

[hedii/laravel-gelf-logger

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

1333.4M10](/packages/hedii-laravel-gelf-logger)

PHPackages © 2026

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