Documentation

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
author

Jordi Boggiano j.boggiano@seld.be

phpstan-import-type

Level from \Monolog\Logger

phpstan-import-type

LevelName from \Monolog\Logger

Table of Contents

$level  : int
__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

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
phpstan-param

Level|LevelName|LogLevel::* $level

Return values
mixed

__destruct()

public __destruct() : mixed
Return values
mixed

__sleep()

public __sleep() : mixed
Return values
mixed

close()

Closes the handler.

public close() : void
Return values
void

handle()

{@inheritDoc}

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

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)

Return values
void

isHandling()

{@inheritDoc}

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

Search results