Base Handler class providing the Handler structure, including processors and formatters

Classes extending it should (in most cases) only implement write($record)

Abstract
ExtendsMonolog\Handler\Handler
Monolog\Handler\AbstractHandler
ChildrenMonolog\Handler\AbstractSyslogHandler
Monolog\Handler\AmqpHandler
Monolog\Handler\BrowserConsoleHandler
Monolog\Handler\ChromePHPHandler
Monolog\Handler\CouchDBHandler
Monolog\Handler\CubeHandler
Monolog\Handler\DoctrineCouchDBHandler
Monolog\Handler\DynamoDbHandler
Monolog\Handler\ElasticaHandler
Monolog\Handler\ElasticsearchHandler
Monolog\Handler\ErrorLogHandler
Monolog\Handler\FirePHPHandler
Monolog\Handler\GelfHandler
Monolog\Handler\IFTTTHandler
Monolog\Handler\LogglyHandler
Monolog\Handler\MailHandler
Monolog\Handler\MongoDBHandler
Monolog\Handler\NewRelicHandler
Monolog\Handler\PHPConsoleHandler
Monolog\Handler\ProcessHandler
Monolog\Handler\RedisHandler
Monolog\Handler\RollbarHandler
Monolog\Handler\SlackWebhookHandler
Monolog\Handler\SocketHandler
Monolog\Handler\SqsHandler
Monolog\Handler\StreamHandler
Monolog\Handler\TelegramBotHandler
Monolog\Handler\TestHandler
Monolog\Handler\ZendMonitorHandler
ImplementsMonolog\Handler\FormattableHandlerInterface
Monolog\Handler\HandlerInterface
Monolog\Handler\ProcessableHandlerInterface
Monolog\ResettableInterface
Methods
public Monolog\Handler\AbstractHandler::__construct( $level = 100, bool $bubble = true)
 
    public Monolog\Handler\Handler::__destruct()
    public Monolog\Handler\Handler::__sleep()
    public Monolog\Handler\Handler::close() : void
     

    {@inheritdoc}

    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}

    • suppress PhanTypeMismatchReturn
    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 $formatter
     
    • var FormatterInterface
    protected Monolog\Handler\AbstractHandler::$level
    protected $processors
     
    • var callable[]
    Methods
    protected getDefaultFormatter() : Monolog\Formatter\FormatterInterface
     

    Gets the default formatter.

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

    protected processRecord(array $record) : array
     

    Processes a record.

    protected resetProcessors() : void
    protected abstract write(array $record) : void
     

    Writes the record down to the log of the implementing handler

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