There is a suggestion on this URL
set autoFlush to false. I have 2 questions:
1. By setting auto flush to false does it increase the chance of data loss
since data is not writen until buffer is filed?
2. How to decide when to call flush?