Flush log messages.