You are here

function monolog_mail in Monolog 2.x

Same name and namespace in other branches
  1. 8 monolog.module \monolog_mail()

Implements hook_mail().

File

./monolog.module, line 29
monolog.module.

Code

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;
}