Backend
Less than 1 minute
Backend
Logger backend interface.
interface BackendDefines the contract for logger backends, including log level mapping, initialization, writing, and resource cleanup.
Methods
__construct
Initializes the backend with the given configuration.
public __construct(array $config): voidParameters
| Parameter | Type | Description |
|---|---|---|
$config | array |
write
Writes a log message to the backend.
public write(string $level, string $message, array $context): voidParameters
| Parameter | Type | Description |
|---|---|---|
$level | string | |
$message | string | |
$context | array |
close
Closes the backend and releases any resources.
public close(): voidGenerated by Hazaar API Doc Generator on Tue, 21 Apr 2026 04:00:23 +0000