forked from leftypol/leftypol
FileLogDriver.php: flush writes to file
This commit is contained in:
parent
cca8d88d91
commit
8f7db3bdef
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue