CodeIgniter v4.6 API

BaseHandler
in package
implements HandlerInterface

AbstractYes

Base class for logging

Table of Contents

Interfaces

HandlerInterface
Expected behavior for a Log handler

Properties

$dateFormat  : string
Date format for logging
$handles  : array<int, string>
Handles

Methods

__construct()  : mixed
canHandle()  : bool
Checks whether the Handler will handle logging items of this log Level.
setDateFormat()  : HandlerInterface
Stores the date format to use while logging messages.

Properties

$dateFormat

Date format for logging

protected string $dateFormat = 'Y-m-d H:i:s'

$handles

Handles

protected array<int, string> $handles

Methods

__construct()

public __construct(array{handles?: list$config) : mixed
Parameters
$config : array{handles?: list}

canHandle()

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

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

        
On this page

Search results