trait PerformsSafeStreamOperations

Methods

void
closeStreamSafely()

Close the configured file stream without installing a process-global error handler around a potentially yielding native operation.

void
writeStreamSafely(LogRecord $record, bool $retrying = false)

Write a record while preserving Monolog's single reopen retry.

Details

at line 24
protected void closeStreamSafely()

Close the configured file stream without installing a process-global error handler around a potentially yielding native operation.

Return Value

void

at line 45
protected void writeStreamSafely(LogRecord $record, bool $retrying = false)

Write a record while preserving Monolog's single reopen retry.

Parameters

LogRecord $record
bool $retrying

Return Value

void