File
Less than 1 minute
File
Properties
config
private array $confighLog
private mixed $hLoghErr
private mixed $hErrMethods
__construct
File backend constructor.
public __construct(array $config): voidInitializes log and error file handles based on configuration.
Parameters
| Parameter | Type | Description |
|---|---|---|
$config | array | Configuration array. Supported keys: - logfile: Path to log file (optional) - errfile: Path to error file (optional) - ident: Identifier string (optional) |
write
Write a log entry to the log file.
public write(string $level, string $message, array $context): voidParameters
| Parameter | Type | Description |
|---|---|---|
$level | string | Log level (e.g., 'notice', 'error'). |
$message | string | log message to write |
$context | array | additional context for the log entry (currently unused) |
close
Close open log and error file handles.
public close(): voidGenerated by Hazaar API Doc Generator on Sun, 01 Mar 2026 09:22:26 +0000