Flush logfile after each message when log level is debug