NullHandler
extends Handler
in package
Blackhole
Any record it can handle will be thrown away. This can be used to put on top of an existing stack to override it temporarily.
Tags
Table of Contents
Properties
- $level : int
Methods
- __construct() : mixed
- __destruct() : mixed
- __sleep() : mixed
- close() : void
- Closes the handler.
- handle() : bool
- {@inheritDoc}
- handleBatch() : void
- Handles a set of records at once.
- isHandling() : bool
- {@inheritDoc}
Properties
$level
private
int
$level
Methods
__construct()
public
__construct([string|int $level = Logger::DEBUG ]) : mixed
Parameters
- $level : string|int = Logger::DEBUG
-
The minimum logging level at which this handler will be triggered
Tags
__destruct()
public
__destruct() : mixed
__sleep()
public
__sleep() : mixed
close()
Closes the handler.
public
close() : void
handle()
{@inheritDoc}
public
handle(array<string|int, mixed> $record) : bool
Parameters
- $record : array<string|int, mixed>
Return values
boolhandleBatch()
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()
{@inheritDoc}
public
isHandling(array<string|int, mixed> $record) : bool
Parameters
- $record : array<string|int, mixed>