\Monolog\HandlerHandlerInterface

Interface that all Monolog Handlers must implement

Summary

Methods
Constants
isHandling()
handle()
handleBatch()
pushProcessor()
popProcessor()
setFormatter()
getFormatter()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

isHandling()

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.

Parameters

array $record

Returns

Boolean

handle()

handle(array  $record) : Boolean

Handles a record.

The return value of this function controls the bubbling process of the handler stack.

Parameters

array $record

The record to handle

Returns

Boolean —

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.

handleBatch()

handleBatch(array  $records) 

Handles a set of records at once.

Parameters

array $records

The records to handle (an array of record arrays)

pushProcessor()

pushProcessor(callable  $callback) 

Adds a processor in the stack.

Parameters

callable $callback

popProcessor()

popProcessor() : callable

Removes the processor on top of the stack and returns it.

Returns

callable