本文整理了Java中com.evolveum.midpoint.util.logging.Trace.isInfoEnabled()
方法的一些代码示例,展示了Trace.isInfoEnabled()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Trace.isInfoEnabled()
方法的具体详情如下:
包路径:com.evolveum.midpoint.util.logging.Trace
类名称:Trace
方法名:isInfoEnabled
暂无
代码示例来源:origin: Evolveum/midpoint
@Override
public PipelineData execute(ActionExpressionType expression, PipelineData input, ExecutionContext context, OperationResult parentResult) throws ScriptExecutionException {
String levelAsString = expressionHelper.getArgumentAsString(expression.getParameter(), PARAM_LEVEL, input, context, LEVEL_INFO, NAME, parentResult);
String message = expressionHelper.getArgumentAsString(expression.getParameter(), PARAM_MESSAGE, input, context, "Current data: ", NAME, parentResult);
message += "{}";
if (LEVEL_INFO.equals(levelAsString)) {
if (LOGGER.isInfoEnabled()) {
LOGGER.info(message, DebugUtil.debugDump(input));
}
} else if (LEVEL_DEBUG.equals(levelAsString)) {
if (LOGGER.isDebugEnabled()) {
LOGGER.debug(message, DebugUtil.debugDump(input));
}
} else if (LEVEL_TRACE.equals(levelAsString)) {
if (LOGGER.isTraceEnabled()) {
LOGGER.trace(message, DebugUtil.debugDump(input));
}
} else {
LOGGER.warn("Invalid logging level specified for 'log' scripting action: " + levelAsString);
}
return input;
}
}
代码示例来源:origin: Evolveum/midpoint
if (LOGGER.isInfoEnabled()) {
LOGGER.info("{} object {} {} done with status {} (this one: {} ms, avg: {} ms) (total progress: {}, wall clock avg: {} ms)",
getProcessShortNameCapitalized(), object,
内容来源于网络,如有侵权,请联系作者删除!