Interface that all Monolog Handlers must implement
- author Jordi Boggiano
|public abstract close() : void|
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)
This is useful at the end of a request and will be called automatically when the object
If you are thinking of calling this method yourself, most likely you should be
|public abstract handle(array $record) : bool|
Handles a record.
All records may be passed to this method, and the handler should discard
The return value of this function controls the bubbling process of the handler stack.
|public abstract handleBatch(array $records) : void|
Handles a set of records at once.
|public abstract isHandling(array $record) : bool|
Checks whether the given record will be handled by this handler.
This is mostly done for performance reasons, to avoid calling processors for nothing.
Handlers should still check the record levels within handle(), returning false in isHandling()