mirror of
https://github.com/Seldaek/monolog.git
synced 2025-10-21 16:46:11 +02:00
Set channel name as default record type
This commit is contained in:
@@ -126,6 +126,8 @@ class CubeHandler extends AbstractProcessingHandler
|
||||
if (isset($record['context']['type'])) {
|
||||
$datas['type'] = $record['context']['type'];
|
||||
unset($record['context']['type']);
|
||||
} else {
|
||||
$datas['type'] = $record['channel'];
|
||||
}
|
||||
|
||||
$datas['data'] = $record['context'];
|
||||
|
Reference in New Issue
Block a user