flushing out the logs