code: def log_message(self, kind, alert):
          
          if kind == 'ERROR':
              logging.error(alert)
          else:
              logging.warning(alert)
          return
docs: Parses different event types and passes them to logging