Lines Matching refs:stream
127 Open the specified file and use it as the stream for logging.
164 if self.stream:
165 self.stream.close()
166 self.stream = None
181 self.stream = self._open()
193 if self.stream is None: # delay was set...
194 self.stream = self._open()
197 self.stream.seek(0, 2) #due to non-posix-compliant Windows feature
198 if self.stream.tell() + len(msg) >= self.maxBytes:
413 if self.stream:
414 self.stream.close()
415 self.stream = None
440 self.stream = self._open()
463 If it has changed, the old file stream is closed, and the file
464 opened to get a new stream.
486 if self.stream:
487 sres = os.fstat(self.stream.fileno())
495 has, close the old stream and reopen the file to get the
496 current stream.
499 # once and then fstat'ing our new fd if we opened a new log stream.
507 # compare file system stat with that of our stream file handle
509 if self.stream is not None:
511 self.stream.flush()
512 self.stream.close()
513 self.stream = None # See Issue #21742: _open () might fail.
515 self.stream = self._open()