Flush the stdout writer after each log.