com.evolveum.midpoint.util.logging.Trace.isErrorEnabled()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(1.9k)|赞(0)|评价(0)|浏览(100)

本文整理了Java中com.evolveum.midpoint.util.logging.Trace.isErrorEnabled()方法的一些代码示例,展示了Trace.isErrorEnabled()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Trace.isErrorEnabled()方法的具体详情如下:
包路径:com.evolveum.midpoint.util.logging.Trace
类名称:Trace
方法名:isErrorEnabled

Trace.isErrorEnabled介绍

暂无

代码示例

代码示例来源:origin: Evolveum/midpoint

} catch (RuntimeException e) {
  if (LOGGER.isErrorEnabled()) {
    LOGGER.error("Unexpected error {} during parsing of schema:\n{}", e.getMessage(),
        DOMUtil.serializeDOMToString(schema));

代码示例来源:origin: Evolveum/midpoint

private boolean processError(PrismObject<O> object, Task task, Throwable ex, OperationResult result) throws ObjectNotFoundException, CommunicationException, SchemaException, ConfigurationException, SecurityViolationException, PolicyViolationException, ExpressionEvaluationException, ObjectAlreadyExistsException, PreconditionViolationException {
    int errorsCount = errors.incrementAndGet();
    LOGGER.trace("Processing error, count: {}", errorsCount);

    String message;
    if (ex != null) {
      message = ex.getMessage();
    } else {
      message = result.getMessage();
    }
    if (logErrors && LOGGER.isErrorEnabled()) {
      LOGGER.error("{} of object {} {} failed: {}", getProcessShortNameCapitalized(), object, getContextDesc(), message, ex);
    }
    // We do not want to override the result set by handler. This is just a fallback case
    if (result.isUnknown() || result.isInProgress()) {
      assert ex != null;
      result.recordFatalError("Failed to "+getProcessShortName()+": "+ex.getMessage(), ex);
    }
    result.summarize();
    LOGGER.info("stop on error return: {}", !isStopOnError(task, ex, result));
    return !isStopOnError(task, ex, result);
//        return !isStopOnError();
  }

代码示例来源:origin: Evolveum/midpoint

+ stringPolicy.getDescription());
if (LOGGER.isErrorEnabled()) {
  LOGGER.error(
      "Unable to generate value for " + ctx.path + ": No intersection for required first character sets in value policy: ["

相关文章