ServerLogHandlerTrait
Tags
Table of Contents
- $context : mixed
- $host : mixed
- $socket : mixed
- __construct() : mixed
- handle() : bool
- {@inheritdoc}
- getDefaultFormatter() : FormatterInterface
- {@inheritdoc}
- write() : void
- createSocket() : mixed
- formatRecord() : string
- nullErrorHandler() : mixed
Properties
$context
private
mixed
$context
$host
private
mixed
$host
$socket
private
mixed
$socket
Methods
__construct()
public
__construct(string $host[, string|int $level = Logger::DEBUG ][, bool $bubble = true ][, array<string|int, mixed> $context = [] ]) : mixed
Parameters
- $host : string
- $level : string|int = Logger::DEBUG
-
The minimum logging level at which this handler will be triggered
- $bubble : bool = true
- $context : array<string|int, mixed> = []
Return values
mixed —handle()
{@inheritdoc}
public
handle(array<string|int, mixed> $record) : bool
Parameters
- $record : array<string|int, mixed>
Return values
bool —getDefaultFormatter()
{@inheritdoc}
protected
getDefaultFormatter() : FormatterInterface
Return values
FormatterInterface —write()
protected
write(array<string|int, mixed> $record) : void
Parameters
- $record : array<string|int, mixed>
Return values
void —createSocket()
private
createSocket() : mixed
Return values
mixed —formatRecord()
private
formatRecord(array<string|int, mixed> $record) : string
Parameters
- $record : array<string|int, mixed>
Return values
string —nullErrorHandler()
private
static nullErrorHandler() : mixed