title: logging how to control the times in which flush to log file
body: <p>I've to use logging module and wonder if there is a way to log into existing log file , by appending my data to the existing file and more important if I can control the times I flush into the file.</p>
  
  <p>Currently I need to be able to flush all the time to the file because, there are cases in which the script running the logic with the logging can crash, so I need to know exactly where my program stopped.</p>
  
  <p>Any ideas and code examples?
  Thanks</p>