Logo Search packages:      
Sourcecode: tcpwatch-httpproxy version File versions  Download package

def tcpwatch::RecordingObserver::_openForAppend (   self,
  extension 
) [private]

Open a file with the given extension for appending.

o File should be in the directory indicated by self._directory.

o File should have a filename '<prefix>_<conn #>.<extension>'.

Definition at line 452 of file tcpwatch.py.

00452                                        :
        """Open a file with the given extension for appending.

        o File should be in the directory indicated by self._directory.

        o File should have a filename '<prefix>_<conn #>.<extension>'.
        """
        filename = '%s%04d.%s' % (self._prefix, self._log_number, extension)
        fqpath = os.path.join(self._directory, filename)
        return open(fqpath, 'a')


#############################################################################


Generated by  Doxygen 1.6.0   Back to index