@@ 111-116 (lines=6) @@ | ||
108 | $data = array('time' => $date->format('Y-m-d\TH:i:s.uO')); |
|
109 | unset($record['datetime']); |
|
110 | ||
111 | if (isset($record['context']['type'])) { |
|
112 | $data['type'] = $record['context']['type']; |
|
113 | unset($record['context']['type']); |
|
114 | } else { |
|
115 | $data['type'] = $record['channel']; |
|
116 | } |
|
117 | ||
118 | $data['data'] = $record['context']; |
|
119 | $data['data']['level'] = $record['level']; |
@@ 152-157 (lines=6) @@ | ||
149 | $options['fingerprint'] = $record['context']['fingerprint']; |
|
150 | unset($record['context']['fingerprint']); |
|
151 | } |
|
152 | if (!empty($record['context']['logger'])) { |
|
153 | $options['logger'] = $record['context']['logger']; |
|
154 | unset($record['context']['logger']); |
|
155 | } else { |
|
156 | $options['logger'] = $record['channel']; |
|
157 | } |
|
158 | foreach ($this->getExtraParameters() as $key) { |
|
159 | foreach (array('extra', 'context') as $source) { |
|
160 | if (!empty($record[$source][$key])) { |