function monolog_mail in Monolog 8
Same name and namespace in other branches
- 2.x monolog.module \monolog_mail()
Implements hook_mail().
File
- ./
monolog.module, line 6
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;
}