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:
@@ -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
|
||||||
|
Reference in New Issue
Block a user