Always flushes file after logging. might be slow, but will prevent data loss on crashes
See Implementation
Always flushes file after logging. might be slow, but will prevent data loss on crashes