Looking to error handling in case when \Fluent\Logger\FluentLogger::write() returns 0,
this call:
|
$errors = error_get_last(); |
gets last php error and it can not be related to write() method only.
Therefore I suggest before using error_get_last() inside logger clear before that all previous error not related to logger.