You are here

monolog.module in Monolog 8

Same filename and directory in other branches
  1. 6 monolog.module
  2. 7 monolog.module
  3. 2.x monolog.module

File

monolog.module
View source
<?php

/**
 * Implements hook_mail().
 */
function monolog_mail($key, &$message, $params) {
  $content = $params['content'];
  $records = $params['records'];
  $message['subject'] = t('A new %level message has been logged', [
    '%level' => $records[0]['level_name'],
  ]);
  $message['body'][] = $content;
}

Functions

Namesort descending Description
monolog_mail Implements hook_mail().