Flow PHP

UdpSyslogHandler implements ErrorHandler

FinalYes

Writes RFC 5424-style syslog frames over UDP to a remote collector.

The socket is opened lazily on the first handle() call, persisted across subsequent calls, and closed in __destruct().

Interfaces

ErrorHandler
Receives Throwables raised inside the SDK at runtime.

Methods

__construct()  : mixed
__destruct()  : mixed
handle()  : void

Methods

handle()

public handle(Throwable $error) : void
Parameters
$error : Throwable
On this page

Search results