mirror of
https://github.com/Seldaek/monolog.git
synced 2025-10-21 08:36:33 +02:00
map loglevel (int-value) to log-message, as well
This commit is contained in:
@@ -83,6 +83,9 @@ class LogstashFormatter extends NormalizerFormatter
|
||||
if (isset($record['level_name'])) {
|
||||
$message['level'] = $record['level_name'];
|
||||
}
|
||||
if (isset($record['level'])) {
|
||||
$message['level_num'] = $record['level'];
|
||||
}
|
||||
if ($this->applicationName) {
|
||||
$message['type'] = $this->applicationName;
|
||||
}
|
||||
|
Reference in New Issue
Block a user