\CodeIgniter\Log\HandlersFileHandler

Log error messages to file system

Summary

Methods
Properties
Constants
__construct()
canHandle()
handle()
setDateFormat()
No public properties found
No constants found
No protected methods found
$handles
$dateFormat
$path
$fileExtension
$filePermissions
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

$path

$path : string

Folder to hold logs

Type

string

$fileExtension

$fileExtension : string

Extension to use for log files

Type

string

$filePermissions

$filePermissions : integer

Permissions for new log files

Type

integer

Methods

__construct()

__construct(array  $config = array()) 

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

Throws

\Exception

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