78 protected function write(array $record)
80 if (!$this->initialized) {
82 register_shutdown_function(array($this,
'close'));
83 $this->initialized =
true;
93 'level' => $this->levelMap[$record[
'level']],
94 'monolog_level' => $record[
'level_name'],
95 'channel' => $record[
'channel'],
96 'datetime' => $record[
'datetime']->format(
'U'),
100 $payload[
'level'] =
$context[
'level'];
104 $this->rollbarNotifier->report_exception($exception,
$context, $payload);
106 $this->rollbarNotifier->report_message(
114 $this->hasRecords =
true;
119 if ($this->hasRecords) {
120 $this->rollbarNotifier->flush();
121 $this->hasRecords =
false;
const NOTICE
Uncommon events.
const DEBUG
Detailed debug information.
const ERROR
Runtime errors.
Base Handler class providing the Handler structure.
__construct(RollbarNotifier $rollbarNotifier, $level=Logger::ERROR, $bubble=true)
const WARNING
Exceptional occurrences that are not errors.
const EMERGENCY
Urgent alert.
const CRITICAL
Critical conditions.
const ALERT
Action must be taken immediately.
const INFO
Interesting events.