1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-08 06:06:40 +02:00

Add channel name for table

This commit is contained in:
Witold Wasiczko
2014-03-28 09:27:51 +01:00
parent 399d10bcf0
commit 894ccd367f

View File

@@ -72,7 +72,7 @@ class WildfireFormatter extends NormalizerFormatter
if(isset($record['context'][self::CONTEXT_TABLE_KEY])){ if(isset($record['context'][self::CONTEXT_TABLE_KEY])){
$type = self::TABLE; $type = self::TABLE;
$label = $record['message']; $label = $record['channel'] .': '. $record['message'];
$message = $record['context'][self::CONTEXT_TABLE_KEY]; $message = $record['context'][self::CONTEXT_TABLE_KEY];
} else { } else {
$type = $this->logLevels[$record['level']]; $type = $this->logLevels[$record['level']];
@@ -87,7 +87,7 @@ class WildfireFormatter extends NormalizerFormatter
'Line' => $line, 'Line' => $line,
'Label' => $label, 'Label' => $label,
), ),
$message $message,
), $handleError); ), $handleError);
// The message itself is a serialization of the above JSON object + it's length // The message itself is a serialization of the above JSON object + it's length