Add more configuration options for error & email details

Created on 12 January 2023, over 1 year ago
Updated 7 December 2023, 7 months ago

Problem/Motivation

Currently the emails created by this module are quite basic. There's room for improvements and further configuration, for example:

To be flexible for technical people, I think something like this for selecting the type and severity might make sense (array representation of the configs for this setting):

[
  [
    'enabled' => TRUE,
    'mail_subject' => 'Lorem ipsum',
    'mail_body' => 'Lorem ipsum',
    'types' => ['php'],
    'severity_degrees' => [WATCHDOG_EMERGENCY, WATCHDOG_ALERT],
    'overwrites' => [/* Additional array overwriting the general configuration for email address and other settings */]
  ],

  [
    'enabled' => TRUE,
    'mail_subject' => 'Lorem ipsum',
    'mail_body' => 'Lorem ipsum',
    'types' => ['mycustommodule'],
    'severity_degrees' => [WATCHDOG_DEBUG],
    'overwrites' => [
      'emails' => ['mycustommoduledeveloper@example.com']
    ]
  ]
]

(EXAMPLE)

The severity_degrees might be selected from the list of all available ones? (WATCHDOG_X)

If it matches and is enabled, the mails are sent and if overwrites are given, these are applied.

Steps to reproduce

Proposed resolution

- [x] Implement
- [x] Write tests
- [] Release

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Fixed

Version

2.0

Component

Code

Created by

🇩🇪Germany Anybody Porta Westfalica

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024