\Monolog\HandlerWhatFailureGroupHandler

Forwards records to multiple handlers suppressing failures of each handler and continuing through to give every handler a chance to succeed.

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 : bool

Type

bool

$processors

$processors : callable[]

Type

callable[]

Methods

__construct()

__construct(\Monolog\Handler\HandlerInterface[]  $handlers, bool  $bubble = true) : mixed

Parameters

\Monolog\Handler\HandlerInterface[] $handlers

Array of Handlers.

bool $bubble

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

Returns

mixed —

isHandling()

isHandling(array  $record) : bool

{@inheritDoc}

Parameters

array $record

Returns

bool —

handle()

handle(array  $record) : bool

{@inheritDoc}

Parameters

array $record

Returns

bool —

handleBatch()

handleBatch(array  $records) : void

Handles a set of records at once.

Parameters

array $records

The records to handle (an array of record arrays)

reset()

reset() : void

close()

close() : void

Closes the handler.

setFormatter()

setFormatter(\Monolog\Formatter\FormatterInterface  $formatter) : \Monolog\Handler\HandlerInterface

{@inheritDoc}

Parameters

\Monolog\Formatter\FormatterInterface $formatter

Returns

\Monolog\Handler\HandlerInterface —

pushProcessor()

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

{@inheritDoc}

Parameters

callable $callback

Returns

\Monolog\Handler\HandlerInterface —

popProcessor()

popProcessor() : callable

{@inheritDoc}

Returns

callable —

__destruct()

__destruct() : mixed

Returns

mixed —

__sleep()

__sleep() : mixed

Returns

mixed —

processRecord()

processRecord(array  $record) : array

Processes a record.

Parameters

array $record

Returns

array —

resetProcessors()

resetProcessors() : void