docs: def emit(msg_dict):
      '''
      Extracts the details from the syslog message
      and returns an object having the following structure:
  
      .. code-block:: python
  
          {
              u'users': {
                  u'user': {
                      u'luke': {
                          u'action': {
                              u'login': True
                          },
                          u'uid': 0
                      }
                  }
              }
          }
      '''
      log.debug('Evaluating the message dict:')
      log.debug(msg_dict)
      ret = {}
      extracted = napalm_logs.utils.extract(_RGX, msg_dict['message'], _RGX_PARTS)
      if not extracted:
          return ret
      uid_key_path = 'users//user//{0[user]}//uid'.format(extracted)
      uid_value = int(extracted['uid'])
      log.debug('Setting %d under key path %s', uid_value, uid_key_path)
      ret.update(napalm_logs.utils.setval(uid_key_path, uid_value, dict_=ret))
      login_key_path = 'users//user//{0[user]}//action//login'.format(extracted)
      ret.update(napalm_logs.utils.setval(login_key_path, True, dict_=ret))
      return ret