CodeIgniter v4.5 API

HandlerInterface

Expected behavior for a Log handler

Table of Contents

Methods

canHandle()  : bool
Checks whether the Handler will handle logging items of this log Level.
handle()  : bool
Handles logging the message.
setDateFormat()  : HandlerInterface
Sets the preferred date format to use when logging.

Methods

canHandle()

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

public canHandle(string $level) : bool
Parameters
$level : string
Return values
bool

handle()

Handles logging the message.

public handle(string $level, string $message) : bool

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

Parameters
$level : string
$message : string
Return values
bool

        
On this page

Search results