'Initialize the handler with the buffer size, the level at which
flushing should occur and an optional target.
Note that without a target being set either here or via setTarget(),
a MemoryHandler is no use to anyone!'

def __init__(self, capacity, flushLevel=logging.ERROR, target=None):

    BufferingHandler.__init__(self, capacity)
    self.flushLevel = flushLevel
    self.target = target
