code: def emit(self, record):
      try:
          msg = self.format(record)
          self.logs.append(msg)
          self.logs = self.logs[-1000:]
          self.flush()
      except Exception:
          self.handleError(record)
  
imports: import logging
label_desc: Use image node_id 2 for calling the DashLogger obj's underlying member method code with example usage: obj.emit(record) without return types