PHPackages                             dyanakiev/laravel-logger-discord-channel - 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. dyanakiev/laravel-logger-discord-channel

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

dyanakiev/laravel-logger-discord-channel
========================================

A Discord based Monolog driver for Laravel

6.1.3(1y ago)77.1k↓12.5%2[4 issues](https://github.com/dyanakiev/laravel-logger-discord-channel/issues)MITPHPPHP ^7.2.5|^8.0CI passing

Since Apr 1Pushed 1y agoCompare

[ Source](https://github.com/dyanakiev/laravel-logger-discord-channel)[ Packagist](https://packagist.org/packages/dyanakiev/laravel-logger-discord-channel)[ RSS](/packages/dyanakiev-laravel-logger-discord-channel/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (6)Dependencies (5)Versions (8)Used By (0)

Laravel Logger - Discord Channel
================================

[](#laravel-logger---discord-channel)

###### A Discord based Monolog driver for Laravel

[](#a-discord-based-monolog-driver-for-laravel)

[![Latest Stable Version](https://camo.githubusercontent.com/9e7802f0eb4babba87398bc1c81dd76224f9d4ec54a1b3c1574bf3424ef57371/687474703a2f2f706f7365722e707567782e6f72672f6479616e616b6965762f6c61726176656c2d6c6f676765722d646973636f72642d6368616e6e656c2f76)](https://packagist.org/packages/dyanakiev/laravel-logger-discord-channel) [![Total Downloads](https://camo.githubusercontent.com/b3416b5ca315fbda3523f8edcb6be621fd2979626141b016d9040e65406485fa/687474703a2f2f706f7365722e707567782e6f72672f6479616e616b6965762f6c61726176656c2d6c6f676765722d646973636f72642d6368616e6e656c2f646f776e6c6f616473)](https://packagist.org/packages/dyanakiev/laravel-logger-discord-channel) [![Daily Downloads](https://camo.githubusercontent.com/d6e69b6c40827e18fa4c48792c16b939ba2ebbc60bdb2e6c671deeb59e734b5c/687474703a2f2f706f7365722e707567782e6f72672f6479616e616b6965762f6c61726176656c2d6c6f676765722d646973636f72642d6368616e6e656c2f642f6461696c79)](https://packagist.org/packages/dyanakiev/laravel-logger-discord-channel) [![Latest Unstable Version](https://camo.githubusercontent.com/65c90b6deecfec457db16a6aee137a97ba74cdb05b118c3fd8a5f96bfe59407b/687474703a2f2f706f7365722e707567782e6f72672f6479616e616b6965762f6c61726176656c2d6c6f676765722d646973636f72642d6368616e6e656c2f762f756e737461626c65)](https://packagist.org/packages/dyanakiev/laravel-logger-discord-channel) [![License](https://camo.githubusercontent.com/b790da0b8fecb3fed50408c51f59a43f1defd3125565b94da213156e817eff3e/687474703a2f2f706f7365722e707567782e6f72672f6479616e616b6965762f6c61726176656c2d6c6f676765722d646973636f72642d6368616e6e656c2f6c6963656e7365)](https://packagist.org/packages/dyanakiev/laravel-logger-discord-channel) [![PHP Version Require](https://camo.githubusercontent.com/4c03089816ecff86180afd8a1ba45bfdb47a6fc578c46f10ef016dcaccc4b6ba/687474703a2f2f706f7365722e707567782e6f72672f6479616e616b6965762f6c61726176656c2d6c6f676765722d646973636f72642d6368616e6e656c2f726571756972652f706870)](https://packagist.org/packages/dyanakiev/laravel-logger-discord-channel)

Install
-------

[](#install)

```
composer require dyanakiev/laravel-logger-discord-channel
```

Usage
-----

[](#usage)

1. Add the new discord channel type in your `config/logging.php` configuration file, find the channels section and add the discord array within

```
'channels' => [
        'discord' => [
            'driver' => 'custom',
            'via' => dyanakiev\LoggerDiscordChannel\DiscordLogger::class,
            'suffix' => env('DISCORD_LOG_SUFFIX','Laravel Log'), // Message title suffix
            'webhook' => env('DISCORD_LOG_WEBHOOK', false), // e.g. https://discordapp.com/api/webhooks/...
            'level' => env('DISCORD_LOG_LEVEL', 'debug'), // You can choose from: emergency, alert, critical, error, warning, notice, info and debug
            'context' => env('DISCORD_LOG_CONTEXT', false), // Enable this if you want to receive the full context of an error, usually useless
            'environment' => env('DISCORD_LOG_ENVIRONMENT', 'production'), // Enable logging only for environment ['production', 'staging', 'local']
            'message' => env('DISCORD_LOG_MESSAGE', false), // Here you can put extra message or tag role or person via @personName
        ],
],
```

2. Add the new discord channel inside the `stack` channel, its recommended to set `LOG_CHANNEL` to `stack` so you can still have your daily logs when running in production
3. Customize the package settings either directly in the config or in the .env file

Note
----

[](#note)

You may need to clear cache after installation if you get `laravel.EMERGENCY: Unable to create configured logger. ... Log [discord] is not defined.` with

```
php artisan config:clear
```

Dont forget to cache the config again after clearing cache if ran on production :)

```
php artisan config:cache
```

Example logs
------------

[](#example-logs)

[![demo-error-imessage](./.github/demo-error-message.png)](./.github/demo-error-message.png)[![demo-info-imessage](./.github/demo-info-message.png)](./.github/demo-info-message.png)

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 57.4% 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 ~149 days

Recently: every ~186 days

Total

6

Last Release

398d ago

Major Versions

5.1.2 → 6.0.02023-04-01

### Community

Maintainers

![](https://www.gravatar.com/avatar/3c4e9d40209ae6425100552bde050e902cd8b17bde040f686e77b3e380047e04?d=identicon)[dyanakiev](/maintainers/dyanakiev)

---

Top Contributors

[![dyanakiev](https://avatars.githubusercontent.com/u/11967079?v=4)](https://github.com/dyanakiev "dyanakiev (31 commits)")[![KABBOUCHI](https://avatars.githubusercontent.com/u/9212274?v=4)](https://github.com/KABBOUCHI "KABBOUCHI (14 commits)")[![adlerdias](https://avatars.githubusercontent.com/u/307859?v=4)](https://github.com/adlerdias "adlerdias (3 commits)")[![fanuch](https://avatars.githubusercontent.com/u/4865267?v=4)](https://github.com/fanuch "fanuch (2 commits)")[![AiAe](https://avatars.githubusercontent.com/u/3695158?v=4)](https://github.com/AiAe "AiAe (2 commits)")[![c17r](https://avatars.githubusercontent.com/u/148640?v=4)](https://github.com/c17r "c17r (1 commits)")[![ajfick](https://avatars.githubusercontent.com/u/19314419?v=4)](https://github.com/ajfick "ajfick (1 commits)")

---

Tags

discorddiscord-loggererrorslaravellaravel-errorlaravel-loglaravel-loggerloggingmonologphplaravelloggerdiscord

### Embed Badge

![Health badge](/badges/dyanakiev-laravel-logger-discord-channel/health.svg)

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

###  Alternatives

[spatie/laravel-health

Monitor the health of a Laravel application

86910.0M83](/packages/spatie-laravel-health)[marvinlabs/laravel-discord-logger

Logging to a discord channel in Laravel

2081.1M2](/packages/marvinlabs-laravel-discord-logger)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)[kabbouchi/laravel-logger-discord-channel

A Discord based Monolog driver for Laravel

149.5k](/packages/kabbouchi-laravel-logger-discord-channel)[ytake/laravel-aspect

Aspect Oriented Programming library for laravel framework, and lumen

138132.2k1](/packages/ytake-laravel-aspect)

PHPackages © 2026

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