Logo Search packages:      
Sourcecode: scanerrlog version File versions  Download package

def scanerrlog::ApacheErrorLog::close (   self  ) 

Optionally save stats and unconditionally closes the Apache error_log file

Definition at line 974 of file scanerrlog.py.

00974                         :
                """Optionally save stats and unconditionally closes the Apache error_log file"""
                # save the statistics
                if self.__continued :
                        pickout = open(self.__statsfilename, "w")
                        cPickle.dump(self.__erreurs, pickout)
                        cPickle.dump(self._linestotal, pickout)
                        cPickle.dump(self._unwanted, pickout)
                        cPickle.dump(self._underlimit, pickout)
                        cPickle.dump(self.__infile.tell(), pickout)     # already read size
                        pickout.close()

                # then close the file
                if self.__opened :
                        self.__infile.close()



def __display_version() :


Generated by  Doxygen 1.6.0   Back to index