PHPackages                             vzambon/laravel-discord-logging - 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. vzambon/laravel-discord-logging

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

vzambon/laravel-discord-logging
===============================

A Laravel package for logging messages to a Discord channel using webhooks.

v1.2(1y ago)421MITPHPPHP ^8.2

Since Aug 13Pushed 1y ago1 watchersCompare

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

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

Laravel Discord Logging
=======================

[](#laravel-discord-logging)

A Laravel package to send customized log messages to a Discord channel via webhook.

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

[](#installation)

You can install the package via Composer:

```
composer require vzambon/laravel-discord-loggin

```

Configuration
-------------

[](#configuration)

After installation, you need to publish the configuration file to customize some of the package settings:

```
php artisan vendor:publish --tag=config

```

This will publish a `discord.php` configuration file to the `config` directory.

Logging Configuration
---------------------

[](#logging-configuration)

Add the following to the logging.php config file:

```
'channels' =>[
     //..
    'discord' => [
	    'driver' => 'custom',
	    'via' => Vzambon\LaravelDiscordLogging\DiscordLogger::class,
	    'formatter' => 'default',
	    'webhook_url' => env('DISCORD_LOG_WEBHOOK_URL'),
	    'options' => [
		    'enable' => env('DISCORD_LOG_ENABLE', true),
		    'asynchronous' => env('DISCORD_LOG_ASYNC', true),
		],
	],
]

```

In the `.env` file, add the `DISCORD_LOG_WEBHOOK_URL` obtained from Discord by navigating to `Apps → Integrations → Webhooks` and clicking `Copy Webhook URL`.

Asynchronous Loggin
-------------------

[](#asynchronous-loggin)

The `asynchronous` option allows log messages to be sent using a queued job. To utilize this feature, ensure that your default queue worker is running:

```
php artisan queue:work

```

If you prefer to send logs synchronously, you can disable this feature by setting `DISCORD_LOG_ASYNC=false` in your `.env` file.

Usage
-----

[](#usage)

To start sending logs to Discord, you just need to log messages using Laravel's built-in Log facade. For example:

```
use Illuminate\Support\Facades\Log;

Log::channel('discord')->info('Hello Discord!');

```

Examples
--------

[](#examples)

[![Info Log](https://raw.githubusercontent.com/vzambon/laravel-discord-logging/refs/heads/assets/1_info_log.png)](https://raw.githubusercontent.com/vzambon/laravel-discord-logging/refs/heads/assets/1_info_log.png)

[![Debug Log](https://raw.githubusercontent.com/vzambon/laravel-discord-logging/refs/heads/assets/2_debug_log.png)](https://raw.githubusercontent.com/vzambon/laravel-discord-logging/refs/heads/assets/2_debug_log.png)

[![Notice Log](https://raw.githubusercontent.com/vzambon/laravel-discord-logging/refs/heads/assets/3_notice_log.png)](https://raw.githubusercontent.com/vzambon/laravel-discord-logging/refs/heads/assets/3_notice_log.png)

[![Warning Log](https://raw.githubusercontent.com/vzambon/laravel-discord-logging/refs/heads/assets/4_warning_log.png)](https://raw.githubusercontent.com/vzambon/laravel-discord-logging/refs/heads/assets/4_warning_log.png)

[![Error Log](https://raw.githubusercontent.com/vzambon/laravel-discord-logging/refs/heads/assets/5_error_log.png)](https://raw.githubusercontent.com/vzambon/laravel-discord-logging/refs/heads/assets/5_error_log.png)

[![Critical Log](https://raw.githubusercontent.com/vzambon/laravel-discord-logging/refs/heads/assets/6_critical_log.png)](https://raw.githubusercontent.com/vzambon/laravel-discord-logging/refs/heads/assets/6_critical_log.png)

[![Alert Log](https://raw.githubusercontent.com/vzambon/laravel-discord-logging/refs/heads/assets/7_alert_log.png)](https://raw.githubusercontent.com/vzambon/laravel-discord-logging/refs/heads/assets/7_alert_log.png)

[![Emergency Log](https://raw.githubusercontent.com/vzambon/laravel-discord-logging/refs/heads/assets/8_emergency_log.png)](https://raw.githubusercontent.com/vzambon/laravel-discord-logging/refs/heads/assets/8_emergency_log.png)

[![Exception Log](https://raw.githubusercontent.com/vzambon/laravel-discord-logging/refs/heads/assets/9_exception_log.png)](https://raw.githubusercontent.com/vzambon/laravel-discord-logging/refs/heads/assets/9_exception_log.png)

License
-------

[](#license)

This package is open-source software licensed under the MIT license.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance41

Moderate activity, may be stable

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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

Recently: every ~35 days

Total

6

Last Release

498d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8e74b57acaf4bcb41c41eecb301ef122187c15949d64104b8af15a773878e715?d=identicon)[vszambon](/maintainers/vszambon)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/vzambon-laravel-discord-logging/health.svg)

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

###  Alternatives

[illuminate/log

The Illuminate Log package.

6224.3M518](/packages/illuminate-log)[freshbitsweb/laravel-log-enhancer

Make debugging easier by adding more data to your laravel logs

346569.0k](/packages/freshbitsweb-laravel-log-enhancer)[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)[kitloong/laravel-app-logger

Laravel log for your application

101.2M8](/packages/kitloong-laravel-app-logger)[shaffe/laravel-mail-log-channel

A package to support logging via email in Laravel

1286.2k](/packages/shaffe-laravel-mail-log-channel)

PHPackages © 2026

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