Sends errors to Rollbar

If the context data contains a payload key, that is used as an array
of payload options to RollbarLogger's log method.

Rollbar's context info will contain the context + extra keys from the log record
merged, and then on top of that a few keys:

  • level (rollbar level name)
  • monolog_level (monolog level name, raw level, as rollbar only has 5 but monolog 8)
  • channel
  • datetime (unix timestamp)
public __construct(Rollbar\RollbarLogger $rollbarLogger, $level = 400, bool $bubble = true)
    public Monolog\Handler\Handler::__destruct()
    public Monolog\Handler\Handler::__sleep()
    public close() : void


    public flush() : void
    public Monolog\Handler\AbstractHandler::getBubble() : bool

    Gets the bubbling behavior.

    • return bool true means that this handler allows bubbling. false means that bubbling is not permitted.
    public Monolog\Handler\AbstractProcessingHandler::getFormatter() : Monolog\Formatter\FormatterInterface


    public Monolog\Handler\AbstractHandler::getLevel() : int

    Gets minimum logging level at which this handler will be triggered.

    • return int
    public Monolog\Handler\AbstractProcessingHandler::handle(array $record) : bool


    public Monolog\Handler\Handler::handleBatch(array $records) : void


    public Monolog\Handler\AbstractHandler::isHandling(array $record) : bool


    public Monolog\Handler\AbstractProcessingHandler::popProcessor() : callable


    public Monolog\Handler\AbstractProcessingHandler::pushProcessor(callable $callback) : Monolog\Handler\HandlerInterface


    • suppress PhanTypeMismatchReturn
    public reset()


    public Monolog\Handler\AbstractHandler::setBubble(bool $bubble) : self

    Sets the bubbling behavior.

    • return self
    public Monolog\Handler\AbstractProcessingHandler::setFormatter(Monolog\Formatter\FormatterInterface $formatter) : Monolog\Handler\HandlerInterface


    • suppress PhanTypeMismatchReturn
    public Monolog\Handler\AbstractHandler::setLevel( $level) : self

    Sets minimum logging level at which this handler will be triggered.

    • return self
    protected Monolog\Handler\AbstractHandler::$bubble
    protected Monolog\Handler\AbstractProcessingHandler::$formatter
    • var FormatterInterface
    protected $initialized
    protected Monolog\Handler\AbstractHandler::$level
    protected $levelMap
    protected Monolog\Handler\AbstractProcessingHandler::$processors
    • var callable[]
    protected $rollbarLogger
    • var RollbarLogger
    protected Monolog\Handler\AbstractProcessingHandler::getDefaultFormatter() : Monolog\Formatter\FormatterInterface

    Gets the default formatter.

    Overwrite this if the LineFormatter is not a good default for your handler.

    protected Monolog\Handler\AbstractProcessingHandler::processRecord(array $record) : array

    Processes a record.

    protected Monolog\Handler\AbstractProcessingHandler::resetProcessors() : void
    protected write(array $record) : void


    private $hasRecords

    Records whether any log records have been added since the last flush of the rollbar notifier

    • var bool
    © 2020 Bruce Wells
    Search Namespaces \ Classes
    ConfigurationNumbers (0-9.) only