'Determine if rollover should occur.
Basically, see if the supplied record would cause the file to exceed
the size limit we have.'

def shouldRollover(self, record):

    if (self.stream is None):
        self.stream = self._open()
    if (self.maxBytes > 0):
        msg = ('%s\n' % self.format(record))
        self.stream.seek(0, 2)
        if ((self.stream.tell() + len(msg)) >= self.maxBytes):
            return 1
    return 0
