PHPackages                             pablo1gustavo/monolog-seq - 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. pablo1gustavo/monolog-seq

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

pablo1gustavo/monolog-seq
=========================

Integrates Monolog with Seq using HTTP ingestion, enabling structured event logging to a centralized Seq server for enhanced log management.

1.0.1(1y ago)61.1k↓25%MITPHPPHP &gt;=8.1CI failing

Since Mar 2Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/Pablo1Gustavo/monolog-seq)[ Packagist](https://packagist.org/packages/pablo1gustavo/monolog-seq)[ RSS](/packages/pablo1gustavo-monolog-seq/feed)WikiDiscussions main Synced 1mo ago

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

Monolog Seq
===========

[](#monolog-seq)

 [![](https://camo.githubusercontent.com/79231c9ba4638e7a4b0238e7ad99bcba4637ddeb0550ce412a8ab37ac1738780/68747470733a2f2f75706c6f61642e77696b696d656469612e6f72672f77696b6970656469612f636f6d6d6f6e732f7468756d622f332f33312f5765627973746865725f32303136303432335f2d5f456c65706870616e742e7376672f3235363070782d5765627973746865725f32303136303432335f2d5f456c65706870616e742e7376672e706e67)](https://camo.githubusercontent.com/79231c9ba4638e7a4b0238e7ad99bcba4637ddeb0550ce412a8ab37ac1738780/68747470733a2f2f75706c6f61642e77696b696d656469612e6f72672f77696b6970656469612f636f6d6d6f6e732f7468756d622f332f33312f5765627973746865725f32303136303432335f2d5f456c65706870616e742e7376672f3235363070782d5765627973746865725f32303136303432335f2d5f456c65706870616e742e7376672e706e67) [![](https://camo.githubusercontent.com/46c544f142c2647da4f7c6708a37552c5a3042d7944141ee8a3f51ca395dc75c/68747470733a2f2f646174616c7573742e636f2f6173736574732f7365712d6c6f676f2d6c696768742e737667)](https://camo.githubusercontent.com/46c544f142c2647da4f7c6708a37552c5a3042d7944141ee8a3f51ca395dc75c/68747470733a2f2f646174616c7573742e636f2f6173736574732f7365712d6c6f676f2d6c696768742e737667)

Integrates PHP Monolog with Seq using HTTP ingestion, enabling structured event logging to a centralized Seq server for enhanced log management.

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

[](#installation)

Install the latest version with

```
composer require pablo1gustavo/monolog-seq
```

Usage
-----

[](#usage)

This package **automatically sets** the [CLEF](https://clef-json.org/) request keys, including **@t**, **@m**, **@mt**, **@l**, and **@x**, ensuring seamless structured logging.

For more detailed usage instructions, refer to the [official Seq documentation](https://docs.datalust.co/docs/posting-raw-events).

### Usage (Vanilla PHP)

[](#usage-vanilla-php)

You can find an example in [`example.php`](example.php).

```
$seqUrl = "http://localhost:5341/api/events/raw";
$seqApiKey = "H16XK1wLgC0LDsen5fwA";

$logger = new Logger('seq');
$logger->pushHandler(new SeqHandler($seqUrl, $seqApiKey));

$logger->critical('error', ['excepasdtion' => new Exception('error')]);
$logger->warning('warn message', ['abc' => "123", 'def' => [1,2,3]]);
$logger->info("hello my name is {name}", ['name' => 'pablo']);
$logger->debug("debug message", ['date' => new DateTime("2002-01-13")]);
$logger->emergency("teste");
```

### Usage (Laravel)

[](#usage-laravel)

Laravel allows you to configure **custom Monolog handlers**, such as this package, within its logging configuration file.

For step-by-step instructions, refer to the [Laravel Logging - Creating Monolog Handler Channels](https://laravel.com/docs/12.x/logging#creating-monolog-handler-channels) documentation.

Example:

```
        'seq' => [
            'driver' => 'monolog',
            'level' => env('LOG_LEVEL', 'debug'),
            'handler' => \Pablo1Gustavo\MonologSeq\Handler\SeqHandler::class,
            'formatter' => \Pablo1Gustavo\MonologSeq\Formatter\SeqJsonFormatter::class,
            'with' => [
                'url' => env('SEQ_URL'),
                'apiKey' => env('SEQ_API_KEY'),
            ],
        ]
```

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance56

Moderate activity, may be stable

Popularity23

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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 ~0 days

Total

2

Last Release

442d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/34045117?v=4)[Pablo Gustavo](/maintainers/pablo1gustavo)[@Pablo1Gustavo](https://github.com/Pablo1Gustavo)

---

Top Contributors

[![Pablo1Gustavo](https://avatars.githubusercontent.com/u/34045117?v=4)](https://github.com/Pablo1Gustavo "Pablo1Gustavo (16 commits)")

---

Tags

logloggingintegrationmonologseqDatalust

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/pablo1gustavo-monolog-seq/health.svg)

```
[![Health](https://phpackages.com/badges/pablo1gustavo-monolog-seq/health.svg)](https://phpackages.com/packages/pablo1gustavo-monolog-seq)
```

###  Alternatives

[inpsyde/wonolog

Monolog-based logging package for WordPress.

183617.9k7](/packages/inpsyde-wonolog)[lefuturiste/monolog-discord-handler

A simple monolog handler for support Discord webhooks

34111.6k4](/packages/lefuturiste-monolog-discord-handler)[logtail/monolog-logtail

Logtail handler for Monolog

233.2M3](/packages/logtail-monolog-logtail)[inpsyde/logzio-monolog

Logz.io integration for Monolog

191.2M1](/packages/inpsyde-logzio-monolog)[mero/yii2-monolog

The Monolog integration for the Yii framework.

42186.1k](/packages/mero-yii2-monolog)[mero/telegram-handler

Monolog handler to send log by Telegram

36113.3k](/packages/mero-telegram-handler)

PHPackages © 2026

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