WarlockWriter
Less than 1 minute
WarlockWriter
Log writer that forwards messages through a Warlock process channel.
class WarlockWriter implements \Hazaar\Warlock\Interface\LogWriterImplements: Hazaar\Warlock\Interface\LogWriter
Properties
process
Process instance used to emit log packets.
private Process $processType: Hazaar\Warlock\Process
prefix
Default log prefix used when one is not supplied.
private string $prefix = 'WARLOCK'Type: string
Methods
__construct
public __construct(Process $process): voidParameters
| Parameter | Type | Description |
|---|---|---|
$process | Hazaar\Warlock\Process | process used to route log messages |
write
Writes a log message to the standard output.
public write(string $message, ?LogLevel $level, ?string $prefix): voidReturns: void
Parameters
| Parameter | Type | Description |
|---|---|---|
$message | string | the log message to write |
$level | Hazaar\Warlock\Enum\LogLevel | |
$prefix | string |
setPrefix
Sets the prefix for the log messages.
public setPrefix(string $prefix): voidReturns: void
Parameters
| Parameter | Type | Description |
|---|---|---|
$prefix | string | the prefix to set for log messages |
Generated by Hazaar API Doc Generator on Fri, 04 Sep 2026 23:32:17 +0000