code: def emit(self, record):
          
          should_cb = None
          attr_val = None
          if hasattr(record, self.typestr):
              attr_val = getattr(record, self.typestr)
              should_cb = bool(attr_val)
          if should_cb is None and record.levelno >= logging.INFO:
              should_cb = True
          if hasattr(record, 'tags'):
              for t in record.tags:
                  if t in self.tags:
                      if self.tags[t]:
                          should_cb = True
                          continue
                      else:
                          should_cb = False
                          break
          if should_cb:
              self.callback(record, attr_val)
docs: Passes the log record back to the CLI for rendering