LogFileWriter
package | Iss |
---|---|
author | Michael Herzberg |
since | 1.0.0 |
__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.
array
write(mixed $object, int $level) : void
mixed
int
$error : resource
$log : resource
$settings : array