\Monolog\HandlerNullHandler

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.

Summary

Methods
Properties
Constants
handleBatch()
close()
__destruct()
__sleep()
__construct()
isHandling()
handle()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$level
N/A

Properties

$level

$level : integer

Type

integer

Methods

handleBatch()

handleBatch(array  $records) 

Handles a set of records at once.

Parameters

array $records

The records to handle (an array of record arrays)

close()

close() 

Closes the handler.

Ends a log cycle and frees all resources used by the handler.

Closing a Handler means flushing all buffers and freeing any open resources/handles.

Implementations have to be idempotent (i.e. it should be possible to call close several times without breakage) and ideally handlers should be able to reopen themselves on handle() after they have been closed.

This is useful at the end of a request and will be called automatically when the object is destroyed if you extend Monolog\Handler\Handler.

If you are thinking of calling this method yourself, most likely you should be calling ResettableInterface::reset instead. Have a look.

__destruct()

__destruct() 

__sleep()

__sleep() 

__construct()

__construct(string|integer  $level = \Monolog\Logger::DEBUG) 

Parameters

string|integer $level

The minimum logging level at which this handler will be triggered

isHandling()

isHandling(array  $record) 

{@inheritdoc}

Parameters

array $record

handle()

handle(array  $record) 

{@inheritdoc}

Parameters

array $record