PHPackages                             dbt/laravel-mattermost-logging-driver - 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. dbt/laravel-mattermost-logging-driver

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

dbt/laravel-mattermost-logging-driver
=====================================

A log driver for Mattermost

3.0.0(5y ago)32.5k4MITPHPPHP &gt;=7.2.5

Since Mar 1Pushed 5y ago1 watchersCompare

[ Source](https://github.com/DeBoerTool/laravel-mattermost-logging-driver)[ Packagist](https://packagist.org/packages/dbt/laravel-mattermost-logging-driver)[ RSS](/packages/dbt-laravel-mattermost-logging-driver/feed)WikiDiscussions trunk Synced yesterday

READMEChangelog (4)Dependencies (5)Versions (7)Used By (0)

Laravel Mattermost Logging Driver
=================================

[](#laravel-mattermost-logging-driver)

This driver allows you to send your logs to your Mattermost instance. It will attach exception stack traces and the log context/

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

[](#installation)

```
composer require dbt/laravel-mattermost-logging-driver

```

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

[](#configuration)

Add the new driver in your `config/logging.php`:

```
'mattermost' => [
    'driver' => 'custom',
    'via' => Dbt\Mattermost\Logger\Factory::class,
    'webhook' => env('MATTERMOST_WEBHOOK'),
],
```

You can also add the `mattermost` channel to your `stack` driver if you wish:

```
'stack' => [
    'driver' => 'stack',
    'channels' => ['single', 'mattermost'],
],
```

Don't forget to set `LOG_CHANNEL=single` in your local and testing environments if you don't want to send logs to Mattermost during your tests.

### Options

[](#options)

You can add additional options after the `driver` and `via` keys in your `config/logging.php`.

OptionDefaultDescription`webhook`Your Mattermost webhook url. You must set this.`channel``town-square`The channel slug where the logs will be send.`level``Logger::INFO`Messages below this log level will not be sent.`level_mention``Logger::ERROR`Messages at or above this level will ping the usernames in the `mentions` key`title_format``'**[%s]** %s'`The message title format, expressed at a `sprintf()` formatted string`title_mention_format``' (ping %s)'`The message title mention format, expressed at a `sprintf()` formatted string`username``Laravel Log`The username to display`mentions``['@channel']`An array of usernames to ping`short_field_length``62`Context content longer than this value will be formatted with a long field`max_attachment_length``6000`Content past this length will be truncated to avoid Mattermost refusing the payload.`icon_url``null`A relative icon URL to display. `UrlGenerator` is called to get the full path, so you can use this in multiple environments without resetting the key.`scribe``null`If you want to override the default message builder, provide your own fully qualified `Scribe` interface implementation`message``null`If you want to override the default message, provide your own fully qualified `Message` interface implementationUsage
-----

[](#usage)

Use this driver like any other. You can send directly to the `mattermost` channel by using the `Log` facade, calling the `logger` function, or getting `LogManager` from the container. Then call `channel(...)` or `stack([...])`.

```
resolve(LogManager::class)
    ->channel('mattermost') // or ->stack(['single', 'bugsnag', 'mattermost'])
    ->info('Everyone loves a good log message.');
```

Sundries
--------

[](#sundries)

Contributions welcomed.

MIT Licensed. Do as you wish.

Based on

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

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

Total

4

Last Release

1980d ago

Major Versions

0.1.0 → 1.0.02019-03-01

1.0.0 → 2.0.02020-09-28

2.0.0 → 3.0.02020-12-09

PHP version history (3 changes)0.1.0PHP &gt;=7.1.3

1.0.0PHP &gt;=7.1.0

3.0.0PHP &gt;=7.2.5

### Community

Maintainers

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

---

Top Contributors

[![danielsdeboer](https://avatars.githubusercontent.com/u/13170241?v=4)](https://github.com/danielsdeboer "danielsdeboer (7 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dbt-laravel-mattermost-logging-driver/health.svg)

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

###  Alternatives

[guanguans/laravel-exception-notify

Monitor exception and report to the notification channels(Log、Mail、AnPush、Bark、Chanify、DingTalk、Discord、Gitter、GoogleChat、IGot、Lark、Mattermost、MicrosoftTeams、NowPush、Ntfy、Push、Pushback、PushBullet、PushDeer、PushMe、Pushover、PushPlus、QQ、RocketChat、ServerChan、ShowdocPush、SimplePush、Slack、Telegram、WeWork、WPush、XiZhi、YiFengChuanHua、ZohoCliq、ZohoCliqWebHook、Zulip).

14642.7k1](/packages/guanguans-laravel-exception-notify)[rafaellaurindo/laravel-telegram-logging

Send Laravel logs to a Telegram chat via Telegram Bot.

3326.8k](/packages/rafaellaurindo-laravel-telegram-logging)

PHPackages © 2026

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