Searched refs:_log_file (Results 1 – 5 of 5) sorted by relevance
19 _log_file = None variable62 global _log_file77 _log_file = log_file78 with lock.FileLock(_log_file, lock.LOCK_EX):79 _log_file.seek(0, os.SEEK_END)81 lastpos = _log_file.tell()85 _log_file.write('[')94 _log_file.write("%s\n" % json.dumps(x))97 _log_file.flush()115 global _log_file[all …]
54 self._log_file = tempfile.TemporaryFile()67 stdout=self._log_file,76 self._log_file.seek(0)77 log = self._log_file.read()91 self._log_file.close()
101 self._log_file = None159 if self._log_file:160 self._log_file.close()161 self._log_file = open('/var/log/messages')162 self._log_file.seek(0, os.SEEK_END)173 lines = self._log_file.readlines()
99 self._log_file = os.path.join(state_dir, 'faft_client.log')100 self._os_if.init(state_dir, log_file=self._log_file)209 log = open(self._log_file).read()211 os.remove(self._log_file)
210 def _log_file(self): member in BaseAgentTask217 log_file = self._log_file()362 nice_level=AUTOSERV_NICE_LEVEL, log_file=self._log_file(),