59 if (isset($record[
'context'][
'exception']) && $record[
'context'][
'exception'] instanceof
Exception) {
60 $context = $record[
'context'];
61 $exception = $context[
'exception'];
62 unset($context[
'exception']);
65 if (isset($context[
'payload'])) {
66 $payload = $context[
'payload'];
67 unset($context[
'payload']);
70 $this->rollbarNotifier->report_exception($exception, $context, $payload);
73 'level' => $record[
'level'],
74 'channel' => $record[
'channel'],
75 'datetime' => $record[
'datetime']->
format(
'U'),
78 $context = $record[
'context'];
80 if (isset($context[
'payload'])) {
81 $payload = $context[
'payload'];
82 unset($context[
'payload']);
85 $this->rollbarNotifier->report_message(
87 $record[
'level_name'],
88 array_merge($record[
'context'], $record[
'extra'], $extraData),
93 $this->hasRecords =
true;
101 if ($this->hasRecords) {
102 $this->rollbarNotifier->flush();
103 $this->hasRecords =
false;
const ERROR
Runtime errors.
Base Handler class providing the Handler structure.
__construct(RollbarNotifier $rollbarNotifier, $level=Logger::ERROR, $bubble=true)
Create styles array
The data for the language used.
Write to Excel2007 format