Flush log after every line