1.x Mattermost Logger

Created on 14 March 2025, 3 months ago

Link to module: https://www.drupal.org/project/mattermost_logger →
D10/D11

This module integrates with Mattermost to log messages from the Drupal logging system.
Choose which logging channels to send to Mattermost and set the logging levels for each channel.

Features

  • Hooks into Drupal's logger service.
  • Supports multiple logging channels.
  • Configurable logging levels per channel.
  • Allows setting a unique webhook per channel or default to a default webhook.
  • Displays messages with color-coded indicators in Mattermost.

Configuration

  • Navigate to /admin/config/services/mattermost-logger/settings.
  • Add Drupal logging channels and their corresponding webhooks.
  • Select the logging levels for each channel.

The module automatically logs messages to mattermost based on the configured channels and levels.

Developers can use the MattermostLogger service manually (Make sure to set a default mattermost webhook in the config):

\Drupal::service('mattermost_logger')->error('my_module', 'My error message');
📌 Task
Status

Needs review

Component

module

Created by

🇳🇱Netherlands emiel_bloem

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024