PHPackages                             jack-cc-kasa/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. jack-cc-kasa/laravel-mattermost-logging-driver

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

jack-cc-kasa/laravel-mattermost-logging-driver
==============================================

A log driver for Mattermost

1.0.0(2y ago)02.4k↓33.3%MITPHPPHP &gt;=7.1.0

Since Sep 27Pushed 1y agoCompare

[ Source](https://github.com/jack-cc-kasa/laravel-mattermost-logging-driver)[ Packagist](https://packagist.org/packages/jack-cc-kasa/laravel-mattermost-logging-driver)[ RSS](/packages/jack-cc-kasa-laravel-mattermost-logging-driver/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (6)Versions (2)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 jack-cc-kasa/laravel-mattermost-logging-driver

```

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

[](#configuration)

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

```
'mattermost' => [
    'driver' => 'custom',
    'via' => colbygarland\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

27

—

LowBetter than 49% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 52.9% 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

Unknown

Total

1

Last Release

958d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/99509636?v=4)[jack-cc-kasa](/maintainers/jack-cc-kasa)[@jack-cc-kasa](https://github.com/jack-cc-kasa)

---

Top Contributors

[![colbygarland](https://avatars.githubusercontent.com/u/8784306?v=4)](https://github.com/colbygarland "colbygarland (18 commits)")[![jack-cc-kasa](https://avatars.githubusercontent.com/u/99509636?v=4)](https://github.com/jack-cc-kasa "jack-cc-kasa (11 commits)")[![danielsdeboer](https://avatars.githubusercontent.com/u/13170241?v=4)](https://github.com/danielsdeboer "danielsdeboer (5 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/jack-cc-kasa-laravel-mattermost-logging-driver/health.svg)](https://phpackages.com/packages/jack-cc-kasa-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)
