def reopen(self):
        self.close()  #innocuous to call close() on unopened file
        try:
            self.file = open(self.path, 'a+')

        except IOError as ex:
            console.terse("Error: creating log file '{0}'\n".format(ex))
            self.file = None
            return False

        console.concise("     Created Log file '{0}'\n".format(self.path))

        return True
closes if open then reopens
dataset/ETHPy150Open ioflo/ioflo/ioflo/base/logging.py/Log.reopen