def flush(self):
        if self.file and not self.file.closed:
            self.file.flush()
            os.fsync(self.file.fileno())
flush self.file if open except stdout
dataset/ETHPy150Open ioflo/ioflo/ioflo/base/logging.py/Log.flush