Flush log messages immediately.