ServerLogHandlerTrait
Tags
Table of Contents
Properties
Methods
- __construct() : mixed
- handle() : bool
- {@inheritdoc}
- getDefaultFormatter() : FormatterInterface
- {@inheritdoc}
- write() : void
- createSocket() : mixed
- formatRecord() : string
- nullErrorHandler() : mixed
Properties
$context
private
resource
$context
$host
private
string
$host
$socket
private
resource|null
$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
- $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
boolgetDefaultFormatter()
{@inheritdoc}
protected
getDefaultFormatter() : FormatterInterface
Return values
FormatterInterfacewrite()
protected
write(array<string|int, mixed> $record) : void
Parameters
- $record : array<string|int, mixed>
createSocket()
private
createSocket() : mixed
formatRecord()
private
formatRecord(array<string|int, mixed> $record) : string
Parameters
- $record : array<string|int, mixed>
Return values
stringnullErrorHandler()
private
static nullErrorHandler() : mixed