parameters: (self, capacity, flushLevel=logging.ERROR, target=None,
                   flushOnClose=True)
docstring: 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!
  
          The ``flushOnClose`` argument is ``True`` for backward compatibility
          reasons - the old behaviour is that when the handler is closed, the
          buffer is flushed, even if the flush level hasn't been exceeded nor the
          capacity exceeded. To prevent this, set ``flushOnClose`` to ``False``.
docstring_summary: Initialize the handler with the buffer size, the level at which
          flushing should occur and an optional target.
docstring_tokens: Initialize the handler with the buffer size the level at which flushing should occur and an optional target .
function: def __init__(self, capacity, flushLevel=logging.ERROR, target=None,
                   flushOnClose=True):
          """
          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!
  
          The ``flushOnClose`` argument is ``True`` for backward compatibility
          reasons - the old behaviour is that when the handler is closed, the
          buffer is flushed, even if the flush level hasn't been exceeded nor the
          capacity exceeded. To prevent this, set ``flushOnClose`` to ``False``.
          """
          BufferingHandler.__init__(self, capacity)
          self.flushLevel = flushLevel
          self.target = target
          # See Issue #26559 for why this has been added
          self.flushOnClose = flushOnClose
function_tokens: def __init__ ( self , capacity , flushLevel = logging . ERROR , target = None , flushOnClose = True ) : BufferingHandler . __init__ ( self , capacity ) self . flushLevel = flushLevel self . target = target # See Issue #26559 for why this has been added self . flushOnClose = flushOnClose