Flush log file

Writes to the log file immediately.

[ChangeLog][General] Flush any buffered data to the log file,
this writes immediately all the log messages.

Issue: #182