Documentation

WhatFailureGroupHandler extends GroupHandler
in package

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

Tags
author

Craig D'Amelio craig@damelio.ca

phpstan-import-type

Record from \Monolog\Logger

Table of Contents

Properties

$bubble  : bool
$handlers  : array<string|int, HandlerInterface>
$processors  : array<string|int, callable>

Methods

__construct()  : mixed
__destruct()  : mixed
__sleep()  : mixed
close()  : void
Closes the handler.
handle()  : bool
Handles a record.
handleBatch()  : void
Handles a set of records at once.
isHandling()  : bool
Checks whether the given record will be handled by this handler.
popProcessor()  : callable
{@inheritDoc}
pushProcessor()  : HandlerInterface
{@inheritDoc}
reset()  : void
setFormatter()  : HandlerInterface
{@inheritDoc}
processRecord()  : array<string|int, mixed>
Processes a record.
resetProcessors()  : void

Properties

$processors

protected array<string|int, callable> $processors = []
Tags
phpstan-var

array<ProcessorInterface|callable(Record): Record>

Methods

__construct()

public __construct(array<string|int, HandlerInterface$handlers[, bool $bubble = true ]) : mixed
Parameters
$handlers : array<string|int, HandlerInterface>

Array of Handlers.

$bubble : bool = true

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

__destruct()

public __destruct() : mixed

handle()

Handles a record.

public handle(array<string|int, mixed> $record) : bool
Parameters
$record : array<string|int, mixed>

The record to handle

Return values
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.

handleBatch()

Handles a set of records at once.

public handleBatch(array<string|int, mixed> $records) : void
Parameters
$records : array<string|int, mixed>

The records to handle (an array of record arrays)

isHandling()

Checks whether the given record will be handled by this handler.

public isHandling(array<string|int, mixed> $record) : bool
Parameters
$record : array<string|int, mixed>

Partial log record containing only a level key

Return values
bool

processRecord()

Processes a record.

protected processRecord(array<string|int, mixed> $record) : array<string|int, mixed>
Parameters
$record : array<string|int, mixed>
Tags
phpstan-param

Record $record

phpstan-return

Record

Return values
array<string|int, mixed>

        
On this page

Search results