LogWriter: Add #flush and #flushSync

See #1.