code: def __init__(self, matcher):
      # BufferingHandler takes a "capacity" argument
      # so as to know when to flush. As we're overriding
      # shouldFlush anyway, we can set a capacity of zero.
      # You can call flush() manually to clear out the
      # buffer.
      logging.handlers.BufferingHandler.__init__(self, 0)
      self.matcher = matcher
  
imports: import logging.handlers
label_desc: Use image node_id 1 to create a new TestHandler object from inherited base classes: logging.handlers with example: obj = TestHandler(matcher)