\CodeIgniter\Log\HandlersHandlerInterface

Expected behavior for a Log handler

Summary

Methods
Constants
handle()
canHandle()
setDateFormat()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

handle()

handle(  $level,   $message) : boolean

Handles logging the message.

If the handler returns false, then execution of handlers will stop. Any handlers that have not run, yet, will not be run.

Parameters

$level
$message

Returns

boolean

canHandle()

canHandle(string  $level) : boolean

Checks whether the Handler will handle logging items of this log Level.

Parameters

string $level

Returns

boolean

setDateFormat()

setDateFormat(string  $format) : \CodeIgniter\Log\Handlers\HandlerInterface

Sets the preferred date format to use when logging.

Parameters

string $format

Returns

\CodeIgniter\Log\Handlers\HandlerInterface