WarlockWriter
Less than 1 minute
WarlockWriter
Log writer that forwards messages through a Warlock process channel.
class WarlockWriter implements \Hazaar\Warlock\Logger\LogWriterProperties
process
Process instance used to emit log packets.
private Process $processprefix
Default log prefix used when one is not supplied.
private string $prefix = 'WARLOCK'Methods
__construct
public __construct(Process $process): voidParameters
| Parameter | Type | Description |
|---|---|---|
$process | Process | process used to route log messages |
write
Writes a log message to the standard output.
public write(string $message, ?LogLevel $level, ?string $prefix): voidParameters
| Parameter | Type | Description |
|---|---|---|
$message | string | the log message to write |
$level | LogLevel | |
$prefix | string |
setPrefix
Sets the prefix for the log messages.
public setPrefix(string $prefix): voidParameters
| Parameter | Type | Description |
|---|---|---|
$prefix | string | the prefix to set for log messages |
Generated by Hazaar API Doc Generator on Tue, 21 Apr 2026 04:00:25 +0000