\CodeIgniter\Log\HandlersBaseHandler

Base class for logging

Summary

Methods
Properties
Constants
__construct()
canHandle()
handle()
setDateFormat()
No public properties found
No constants found
No protected methods found
$handles
$dateFormat
N/A
No private methods found
No private properties found
N/A

Properties

$handles

$handles : array

Handles

Type

array

$dateFormat

$dateFormat : string

Date format for logging

Type

string

Methods

__construct()

__construct(array  $config) 

Constructor

Parameters

array $config

canHandle()

canHandle(string  $level) : boolean

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

Parameters

string $level

Returns

boolean

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

setDateFormat()

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

Stores the date format to use while logging messages.

Parameters

string $format

Returns

\CodeIgniter\Log\Handlers\HandlerInterface