code: def _set_log_callback(self):
          
          logger.debug("setting up event logger")
  
          def log_callback(event):
              logger.info("callback event: " + self.event_text(event))
  
          self.set_events_callback(log_callback)
docs: Sets a callback that logs the events