MultiLogRecordProcessor
in package
implements
LogRecordProcessorInterface
Table of Contents
Interfaces
Properties
- $processors : array<int, LogRecordProcessorInterface>
Methods
- __construct() : mixed
- forceFlush() : bool
- Returns `true` if all processors flush successfully, else `false`.
- onEmit() : void
- shutdown() : bool
- Returns `true` if all processors shut down successfully, else `false` Subsequent calls to `shutdown` are a no-op.
Properties
$processors
private
array<int, LogRecordProcessorInterface>
$processors
= []
Methods
__construct()
public
__construct(array<string|int, mixed> $processors) : mixed
Parameters
- $processors : array<string|int, mixed>
forceFlush()
Returns `true` if all processors flush successfully, else `false`.
public
forceFlush([CancellationInterface|null $cancellation = null ]) : bool
Parameters
- $cancellation : CancellationInterface|null = null
Return values
boolonEmit()
public
onEmit(ReadWriteLogRecord $record[, ContextInterface|null $context = null ]) : void
Parameters
- $record : ReadWriteLogRecord
- $context : ContextInterface|null = null
shutdown()
Returns `true` if all processors shut down successfully, else `false` Subsequent calls to `shutdown` are a no-op.
public
shutdown([CancellationInterface|null $cancellation = null ]) : bool
Parameters
- $cancellation : CancellationInterface|null = null