Flow PHP

StreamHandler implements ErrorHandler

FinalYes

Appends formatted Throwables (one per line) to a file path or php:// stream wrapper. The stream is opened lazily on the first handle() call and reused across subsequent calls; __destruct() closes it.

Concurrent writers acquire LOCK_EX around fwrite so lines never interleave; flock() on TTYs and pipes returns false silently — best-effort.

Interfaces

ErrorHandler
Receives Throwables raised inside the SDK at runtime.

Methods

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

Methods

__construct()

public __construct(string $destination[, int $filePermissions = 0644 ][, bool $createDirectories = true ][, string $messagePrefix = '[flow-telemetry]' ]) : mixed
Parameters
$destination : string
$filePermissions : int = 0644
$createDirectories : bool = true
$messagePrefix : string = '[flow-telemetry]'

handle()

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

Search results