FileLogDriver.php: flush writes to file

This commit is contained in:
Zankaria 2024-12-19 00:33:54 +01:00
parent cca8d88d91
commit 8f7db3bdef

View file

@ -49,6 +49,7 @@ class FileLogDriver implements LogDriver {
$line = "{$this->name} $lv: $message\n";
\flock($this->fd, LOCK_EX);
\fwrite($this->fd, $line);
\fflush($this->fd);
\flock($this->fd, LOCK_UN);
}
}