47 protected function write(array $record)
49 if (isset($record[
'context'][
'exception']) && $record[
'context'][
'exception'] instanceof Exception) {
50 $this->rollbarNotifier->report_exception($record[
'context'][
'exception']);
53 'level' => $record[
'level'],
54 'channel' => $record[
'channel'],
55 'datetime' => $record[
'datetime']->format(
'U'),
58 $this->rollbarNotifier->report_message(
60 $record[
'level_name'],
61 array_merge($record[
'context'], $record[
'extra'], $extraData)
71 $this->rollbarNotifier->flush();
Base Handler class providing the Handler structure.
close()
{Closes the handler.This will be called automatically when the object is destroyed}
write(array $record)
{Writes the record down to the log of the implementing handler.void}
__construct(RollbarNotifier $rollbarNotifier, $level=Logger::ERROR, $bubble=true)
const ERROR
Runtime errors.