Buffers all records until closing the handler and then pass them as batch.

This is useful for a MailHandler to send only one mail per request instead of
sending one per log message.

CloneableInstantiable
ExtendsMonolog\Handler\AbstractHandler
Monolog\Handler\Handler
ImplementsMonolog\Handler\FormattableHandlerInterface
Monolog\Handler\HandlerInterface
Monolog\Handler\ProcessableHandlerInterface
Monolog\ResettableInterface
Methods
public __construct(Monolog\Handler\HandlerInterface $handler, int $bufferLimit = 0, $level = 100, bool $bubble = true, bool $flushOnOverflow = false)
 
    public __destruct()
    public Monolog\Handler\Handler::__sleep()
    public clear() : void
     

    Clears the buffer without flushing any messages down to the wrapped handler.

    public close() : void
     

    {@inheritdoc}

    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 getFormatter() : Monolog\Formatter\FormatterInterface
     

    {@inheritdoc}

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

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

    • return int
    public handle(array $record) : bool
     

    {@inheritdoc}

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

    {@inheritdoc}

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

    {@inheritdoc}

    public popProcessor() : callable
     

    {@inheritdoc}

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

    {@inheritdoc}

    • suppress PhanTypeMismatchReturn
    public reset()
    public Monolog\Handler\AbstractHandler::setBubble(bool $bubble) : self
     

    Sets the bubbling behavior.

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

    {@inheritdoc}

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

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

    • return self
    Properties
    protected Monolog\Handler\AbstractHandler::$bubble
    protected $buffer
    protected $bufferLimit
    protected $bufferSize
    protected $flushOnOverflow
    protected $handler
    protected $initialized
    protected Monolog\Handler\AbstractHandler::$level
    protected $processors
     
    • var callable[]
    Methods
    protected processRecord(array $record) : array
     

    Processes a record.

    protected resetProcessors() : void
    © 2020 Bruce Wells
    Search Namespaces \ Classes
    ConfigurationNumbers (0-9.) only