Documentation

ServerLogHandlerTrait

Tags
author

Grégoire Pineau lyrixx@lyrixx.info

Table of Contents

Properties

$context  : resource
$host  : string
$socket  : resource|null

Methods

__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
$bubble : bool = true
$context : array<string|int, 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>

formatRecord()

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

        
On this page

Search results