Documentation

ServerLogHandlerTrait

Tags
author

Grégoire Pineau lyrixx@lyrixx.info

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

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

write()

protected write(array<string|int, mixed> $record) : void
Parameters
$record : array<string|int, mixed>
Return values
void

formatRecord()

private formatRecord(array<string|int, mixed> $record) : string
Parameters
$record : array<string|int, mixed>
Return values
string

nullErrorHandler()

private static nullErrorHandler() : mixed
Return values
mixed

Search results