Beispiel #1
0
 /**
  * {@inheritdoc}
  */
 protected function write(array $record)
 {
     $trace = array_slice(debug_backtrace(), 3);
     $exc = new Errors\Base($record['message'], $trace);
     $notice = $this->notifier->buildNotice($exc);
     $type = $record['channel'] . '.' . $record['level_name'];
     $notice['errors'][0]['type'] = $type;
     if (!empty($record['context'])) {
         $notice['params']['monolog_context'] = $record['context'];
     }
     if (!empty($record['extra'])) {
         $notice['params']['monolog_extra'] = $record['extra'];
     }
     return $this->notifier->sendNotice($notice);
 }