Base Handler class providing basic level/bubble support

Abstract
ExtendsMonolog\Handler\Handler
ChildrenMonolog\Handler\AbstractProcessingHandler
Monolog\Handler\BufferHandler
Monolog\Handler\OverflowHandler
Monolog\Handler\PsrHandler
Monolog\Handler\SamplingHandler
ImplementsMonolog\Handler\HandlerInterface
Monolog\ResettableInterface
Methods
public __construct( $level = 100, bool $bubble = true)
 
    public Monolog\Handler\Handler::__destruct()
    public Monolog\Handler\Handler::__sleep()
    public Monolog\Handler\Handler::close() : void
     

    {@inheritdoc}

    public getBubble() : bool
     

    Gets the bubbling behavior.

    • return bool true means that this handler allows bubbling. false means that bubbling is not permitted.
    public getLevel() : int
     

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

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

    Handles a record.

    All records may be passed to this method, and the handler should discard
    those that it does not want to handle.

    The return value of this function controls the bubbling process of the handler stack.
    Unless the bubbling is interrupted (by returning true), the Logger class will keep on
    calling further handlers in the stack with a given log record.

    • return bool true means that this handler handled the record, and that bubbling is not permitted. false means the record was either not processed or that this handler allows bubbling.
    public Monolog\Handler\Handler::handleBatch(array $records) : void
     

    {@inheritdoc}

    public isHandling(array $record) : bool
     

    {@inheritdoc}

    public reset()
    public setBubble(bool $bubble) : self
     

    Sets the bubbling behavior.

    • return self
    public setLevel( $level) : self
     

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

    • return self
    Properties
    protected $bubble
    protected $level
    © 2020 Bruce Wells
    Search Namespaces \ Classes
    ConfigurationNumbers (0-9.) only