LogFileWriter

package Iss
author Michael Herzberg
since 1.0.0

 Methods

Constructor

__construct(array $settings) : void

Prepare this log writer. Available settings are:

path: (string) The relative or absolute filesystem path to a writable directory.

name_format: (string) The log file name format; parsed with date().

message_format: (string) The log message format; available tokens are... %label% Replaced with the log message level (e.g. FATAL, ERROR, WARN). %date% Replaced with a ISO8601 date string for current timezone. %message% Replaced with the log message, coerced to a string.

Parameters

$settings

array

Write to log

write(mixed $object, int $level) : void

Parameters

$object

mixed

$level

int

 Properties

 

Error log

$error : resource

 

Log

$log : resource

 

Settings

$settings : array