'Create a log file rotating on length.
@param name: file name.
@type name: C{str}
@param directory: path of the log file.
@type directory: C{str}
@param rotateLength: size of the log file where it rotates. Default to
1M.
@type rotateLength: C{int}
@param defaultMode: mode used to create the file.
@type defaultMode: C{int}
@param maxRotatedFiles: if not None, max number of log files the class
creates. Warning: it removes all log files above this number.
@type maxRotatedFiles: C{int}'

def __init__(self, name, directory, rotateLength=1000000, defaultMode=None, maxRotatedFiles=None):

    BaseLogFile.__init__(self, name, directory, defaultMode)
    self.rotateLength = rotateLength
    self.maxRotatedFiles = maxRotatedFiles
