\Monolog\HandlerFallbackGroupHandler

Forwards records to multiple handlers

Summary

Methods
Properties
Constants
__construct()
isHandling()
handle()
handleBatch()
reset()
close()
setFormatter()
pushProcessor()
popProcessor()
__destruct()
__sleep()
No public properties found
No constants found
processRecord()
resetProcessors()
$handlers
$bubble
$processors
N/A
No private methods found
No private properties found
N/A

Properties

$bubble

$bubble : 

Type

$processors

$processors : array<mixed,callable>

Type

array<mixed,callable>

Methods

__construct()

__construct(array<mixed,\Monolog\Handler\HandlerInterface>  $handlers, boolean  $bubble = true) 

Parameters

array<mixed,\Monolog\Handler\HandlerInterface> $handlers

Array of Handlers.

boolean $bubble

Whether the messages that are handled can bubble up the stack or not

isHandling()

isHandling(array  $record) 

{@inheritdoc}

Parameters

array $record

handle()

handle(array  $record) 

{@inheritdoc}

Parameters

array $record

handleBatch()

handleBatch(array  $records) 

Handles a set of records at once.

Parameters

array $records

The records to handle (an array of record arrays)

reset()

reset() : void

close()

close() 

Closes the handler.

Ends a log cycle and frees all resources used by the handler.

Closing a Handler means flushing all buffers and freeing any open resources/handles.

Implementations have to be idempotent (i.e. it should be possible to call close several times without breakage) and ideally handlers should be able to reopen themselves on handle() after they have been closed.

This is useful at the end of a request and will be called automatically when the object is destroyed if you extend Monolog\Handler\Handler.

If you are thinking of calling this method yourself, most likely you should be calling ResettableInterface::reset instead. Have a look.

pushProcessor()

pushProcessor(callable  $callback) 

{@inheritdoc}

Parameters

callable $callback

popProcessor()

popProcessor() 

{@inheritdoc}

__destruct()

__destruct() 

__sleep()

__sleep() 

processRecord()

processRecord(array  $record) 

Processes a record.

Parameters

array $record

resetProcessors()

resetProcessors()