1
0
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:
Kamisama
2012-07-31 16:17:32 -04:00
parent e14ce7c8ba
commit 6255ae58ee

View File

@@ -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'];