Class BaseHandler

Summary

Fully Qualified Name: CodeIgniter\Log\Handlers\BaseHandler
Implements: HandlerInterface

Description

Base class for logging

Methods

Name Description Defined By
__construct() Constructor BaseHandler
canHandle() Checks whether the Handler will handle logging items of this log Level. BaseHandler
handle() Handles logging the message. BaseHandler
setDateFormat() Stores the date format to use while logging messages. BaseHandler

Method Details

__construct()

Constructor

Parameter Name Type Description
$config array

Returns:

canHandle()

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

Parameter Name Type Description
$level
$level

Returns: bool

handle()

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.

Parameter Name Type Description
$message
$level
$message

Returns: bool

setDateFormat()

Stores the date format to use while logging messages.

Parameter Name Type Description
$format string

Returns: \HandlerInterface

Top