if self.ALWAYS_FLUSH:
           # not sure why flush doesn't work as excpected
           # self.logfile.flush()
           # close and re-open log file
           try: