$level
$level :
Sends errors to Rollbar
If the context data contains a payload
key, that is used as an array
of payload options to RollbarNotifier's report_message/report_exception methods.
Rollbar's context info will contain the context + extra keys from the log record merged, and then on top of that a few keys:
$formatter : \Monolog\Formatter\FormatterInterface
__construct(\RollbarNotifier $rollbarNotifier, integer $level = \Monolog\Logger::ERROR, boolean $bubble = true)
\RollbarNotifier | $rollbarNotifier | RollbarNotifier object constructed with valid token |
integer | $level | The minimum logging level at which this handler will be triggered |
boolean | $bubble | Whether the messages that are handled can bubble up the stack or not |
isHandling(array $record) : Boolean
Checks whether the given record will be handled by this handler.
This is mostly done for performance reasons, to avoid calling processors for nothing.
Handlers should still check the record levels within handle(), returning false in isHandling() is no guarantee that handle() will not be called, and isHandling() might not be called for a given record.
array | $record | Partial log record containing only a level key |
setFormatter(\Monolog\Formatter\FormatterInterface $formatter) : self
Sets the formatter.
\Monolog\Formatter\FormatterInterface | $formatter |
getFormatter() : \Monolog\Formatter\FormatterInterface
Gets the formatter.
getDefaultFormatter() : \Monolog\Formatter\FormatterInterface
Gets the default formatter.