当前位置: 首页>>代码示例>>Java>>正文


Java MintLogLevel类代码示例

本文整理汇总了Java中com.splunk.mint.MintLogLevel的典型用法代码示例。如果您正苦于以下问题:Java MintLogLevel类的具体用法?Java MintLogLevel怎么用?Java MintLogLevel使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


MintLogLevel类属于com.splunk.mint包,在下文中一共展示了MintLogLevel类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: accept

import com.splunk.mint.MintLogLevel; //导入依赖的package包/类
/**
 * 
 */
public Bundle accept() {
	Util.hideKeyboard(editName);
	customProbe.setName(editName.getText().toString());
	customProbe.setDescription(editDescription.getText().toString());
	customProbe.setFooter(editFooter.getText().toString());
	customProbe.getProbeInfo().applyBePattern(editBe.getText().toString());
	customProbe.getProbeInfo().applyProbePattern(editAttrs.getText().toString());
	customProbe.setValue(Util.parseInteger(editValue.getText().toString()));
	customProbe.setProbeType((ProbeType) editProbeType.getSelectedItem());
	customProbe.setModificatorType((ModificatorType) editModType.getSelectedItem());
	customProbe.setIconUri(iconUri);

	if (Intent.ACTION_INSERT.equals(getActivity().getIntent().getAction())) {
		DsaTabApplication.getInstance().getHero().getHeroConfiguration().addCustomProbe(customProbe);
	}

       Mint.logEvent("Save CustomProbe", MintLogLevel.Info,"Name",customProbe.getName());

	Bundle data = new Bundle();
	// TODO fill data
	return data;
}
 
开发者ID:gandulf,项目名称:DsaTab,代码行数:26,代码来源:CustomProbeEditFragment.java

示例2: accept

import com.splunk.mint.MintLogLevel; //导入依赖的package包/类
public Bundle accept() {

		Bundle data = new Bundle();

		Bundle extra = getExtra();
		if (extra != null) {
			data.putSerializable(INTENT_ID, extra.getSerializable(INTENT_ID));
		}
		String name = etName.getText().toString();
		String comment = etComment.getText().toString();
		String rules = etRules.getText().toString();

		if (TextUtils.isEmpty(rules)) {
			etRules.setError(getString(R.string.mandatory));
			return null;
		}
		data.putString(INTENT_NAME, name);
		data.putString(INTENT_COMMENT, comment);
		data.putString(INTENT_RULES, rules);
		data.putBoolean(INTENT_ACTIVE, cbActive.isChecked());

        Mint.logEvent("Save Modificator", MintLogLevel.Info,"Name",name);

		return data;
	}
 
开发者ID:gandulf,项目名称:DsaTab,代码行数:26,代码来源:ModificatorEditFragment.java

示例3: publish

import com.splunk.mint.MintLogLevel; //导入依赖的package包/类
@Override
public void publish(EventPayload eventPayload) {
    HashMap<String, Object> payload = new HashMap<>();
    payload.put("deviceId", deviceIdentifier);
    payload.put("log", eventPayload.getPayload());
    Mint.logEvent("EMM Logs", MintLogLevel.Info, payload);
}
 
开发者ID:wso2-attic,项目名称:product-emm,代码行数:8,代码来源:SplunkLogPublisher.java

示例4: setName

import com.splunk.mint.MintLogLevel; //导入依赖的package包/类
public void setName(String name) {
	name = name.trim();

	this.info = DataManager.getSpellByName(name);
	if (info == null) {
           Mint.logEvent("Spell unknown", MintLogLevel.Warning,"Name",name);
		info = new SpellInfo();
		info.setName(name);
	}
}
 
开发者ID:gandulf,项目名称:DsaTab,代码行数:11,代码来源:Spell.java

示例5: fillAdvantages

import com.splunk.mint.MintLogLevel; //导入依赖的package包/类
/**
 * @param heldElement
 */
private static void fillAdvantages(AbstractBeing being, Element heldElement) {

    List<Element> list = new ArrayList<Element>();

    list.addAll(DomUtil.getChildrenByTagName(heldElement, Xml.KEY_VT, Xml.KEY_VORTEIL));

    list.addAll(DomUtil.getChildrenByTagName(heldElement, Xml.KEY_VORTEILE, Xml.KEY_VORTEIL));

    for (Element element : list) {
        FeatureType featureType = null;
        String name = null;
        try {
            name = element.getAttributeValue(Xml.KEY_NAME).trim();
            featureType = FeatureType.byXmlName(name);
        } catch (FeatureTypeUnknownException e) {
            Mint.logEvent("Unknown FeatureType", MintLogLevel.Warning, "Name", name);
            continue;
        }
        if (featureType != null) {
            Feature adv = new Feature(featureType);
            String value = element.getAttributeValue(Xml.KEY_VALUE);
            if (!TextUtils.isEmpty(value)) {
                adv.addValue(value);
            }
            adv.setComment(element.getAttributeValue(Xml.KEY_COMMENT));

            List<Element> auswahls = element.getChildren(Xml.KEY_AUSWAHL);
            if (auswahls != null) {
                for (Element auswahl : auswahls) {
                    adv.addValue(auswahl.getAttributeValue(Xml.KEY_VALUE));
                }
            }

            being.addFeature(adv);
        }
    }
}
 
开发者ID:gandulf,项目名称:DsaTab,代码行数:41,代码来源:HeldenXmlParser.java

示例6: fileMintReport

import com.splunk.mint.MintLogLevel; //导入依赖的package包/类
private void fileMintReport () {
    HashMap<String,Object> report = new HashMap<>();
    report.put("grid", gridLayout.getGrid().toString());
    Mint.logEvent("GameOver", MintLogLevel.Info, "grid", gridLayout.toString());
    Mint.logEvent("GameOver", MintLogLevel.Info, report);
}
 
开发者ID:msokolov,项目名称:DogWord,代码行数:7,代码来源:DogWord.java

示例7: setName

import com.splunk.mint.MintLogLevel; //导入依赖的package包/类
protected void setName(String name) {
	name = name.trim();

	setGroupType(ArtGroupType.getTypeOfArt(name));
	String origName = name;
	if (groupType != null) {
		name = groupType.truncateName(name);
	} else {
           Mint.logEvent("Unknown Art GroupType", MintLogLevel.Warning,"Name",name);
	}

	String grade = null;

	// we have a grade specification in the name: Erdsegen (III)
	if (name.endsWith(")")) {
		grade = name.substring(name.lastIndexOf("(") + 1);
		grade = grade.substring(0, grade.length() - 1);

		// we acutally found a grade (I)
		if (Util.gradeToInt(grade) >= 0) {
			name = name.substring(0, name.lastIndexOf("(")).trim();
		} else {
			grade = null;
		}
	}

	// TODO Check for art that do not have a grade on first grade. to get
	// loaded right!!!

	if (grade == null) {
		info = DataManager.getArtByName(origName);
		if (info == null) {
			info = DataManager.getArtByName(name);
		}
		if (info == null) {
			info = DataManager.getArtLikeName(name);
		}
	} else {
		info = DataManager.getArtByNameAndGrade(name, grade);
		if (info == null) {
			info = DataManager.getArtByNameAndGrade(origName, grade);
		}
		if (info == null) {
			info = DataManager.getArtLikeNameAndGrade(name, grade);
		}
	}

	if (info == null) {
		info = new ArtInfo();
		info.setName(name);
		if (grade != null) {
			info.setGrade(Util.gradeToInt(grade));
		}

           HashMap customData = new HashMap(2);
           customData.put("Name" , name);
           customData.put("Grade" , grade);
           Mint.logEvent("Unknown Art", MintLogLevel.Warning, customData);
	}

	setProbePattern(info.getProbe());

	if (probeInfo.getErschwernis() == null && info.getGrade() > 0) {
		probeInfo.setErschwernis(info.getGrade() * 2 - 2);
	}
}
 
开发者ID:gandulf,项目名称:DsaTab,代码行数:67,代码来源:Art.java


注:本文中的com.splunk.mint.MintLogLevel类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。