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): voidReturns: void
Parameters
| Parameter | Type | Description |
|---|---|---|
$level | string | |
$message | string | |
$context | array |
close
Closes the backend and releases any resources.
public close(): voidReturns: void
Generated by Hazaar API Doc Generator on Fri, 04 Sep 2026 23:32:17 +0000