code: def emit_message(self, message, log_level):
          
          self.log(message)
          if log_level == logging.ERROR:
              if self._error_msg_callback:
                  self._error_msg_callback(message)
                  return
  
          if log_level == logging.WARNING:
              if self._warning_msg_callback:
                  self._warning_msg_callback(message)
                  return
  
          if log_level == logging.INFO:
              if self._info_msg_callback:
                  self._info_msg_callback(message)
                  return
  
          if self._msg_callback:
              self._msg_callback(message)
docs: Call the msg callback function with the message.