(self, record)
return False
Determine if rollover should occur.

        Basically, see if the supplied record would cause the file to exceed
        the size limit we have.
Determine if rollover should occur.
Determine if rollover should occur .
def shouldRollover(self, record):
        """
        Determine if rollover should occur.

        Basically, see if the supplied record would cause the file to exceed
        the size limit we have.
        """
        # See bpo-45401: Never rollover anything other than regular files
        if os.path.exists(self.baseFilename) and not os.path.isfile(self.baseFilename):
            return False
        if self.stream is None:                 # delay was set...
            self.stream = self._open()
        if self.maxBytes > 0:                   # are we rolling over?
            msg = "%s\n" % self.format(record)
            self.stream.seek(0, 2)  #due to non-posix-compliant Windows feature
            if self.stream.tell() + len(msg) >= self.maxBytes:
                return True
        return False
def shouldRollover ( self , record ) : # See bpo-45401: Never rollover anything other than regular files if os . path . exists ( self . baseFilename ) and not os . path . isfile ( self . baseFilename ) : return False if self . stream is None : # delay was set... self . stream = self . _open ( ) if self . maxBytes > 0 : # are we rolling over? msg = "%s\n" % self . format ( record ) self . stream . seek ( 0 , 2 ) #due to non-posix-compliant Windows feature if self . stream . tell ( ) + len ( msg ) >= self . maxBytes : return True return False