org.gradle.api.logging.Logger.trace()方法的使用及代码示例

x33g5p2x  于2022-01-23 转载在 其他  
字(4.5k)|赞(0)|评价(0)|浏览(230)

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

Logger.trace介绍

暂无

代码示例

代码示例来源:origin: gradle.plugin.org.zeroturnaround/gradle-jrebel-plugin

public void trace(String msg) {
 wrappedLogger.trace(PREFIX + msg);
}

代码示例来源:origin: zeroturnaround/gradle-jrebel-plugin

public void trace(String msg) {
 wrappedLogger.trace(PREFIX + msg);
}

代码示例来源:origin: gradle.plugin.com.github.arguslab/gradle-jawa-plugin

@Override
  public void trace(Throwable exception) {
    LOGGER.trace(exception.getMessage());
  }
}

代码示例来源:origin: michel-kraemer/gradle-download-task

/**
 * Invoke a method using reflection but don't throw any exceptions.
 * Just log errors instead.
 * @param obj the object whose method should be invoked
 * @param method the name of the method to invoke
 * @param args the arguments to pass to the method
 */
private void invokeIgnoreExceptions(Object obj, String method,
    Object... args) {
  try {
    invoke(obj, method, args);
  } catch (NoSuchMethodException e) {
    logger.trace("Unable to log progress", e);
  } catch (InvocationTargetException e) {
    logger.trace("Unable to log progress", e);
  } catch (IllegalAccessException e) {
    logger.trace("Unable to log progress", e);
  }
}

代码示例来源:origin: de.undercouch/gradle-download-task

/**
 * Invoke a method using reflection but don't throw any exceptions.
 * Just log errors instead.
 * @param obj the object whose method should be invoked
 * @param method the name of the method to invoke
 * @param args the arguments to pass to the method
 */
private void invokeIgnoreExceptions(Object obj, String method,
    Object... args) {
  try {
    invoke(obj, method, args);
  } catch (NoSuchMethodException e) {
    logger.trace("Unable to log progress", e);
  } catch (InvocationTargetException e) {
    logger.trace("Unable to log progress", e);
  } catch (IllegalAccessException e) {
    logger.trace("Unable to log progress", e);
  }
}

代码示例来源:origin: com.carecon.fabric3.gradle/fabric3-plugin-core

/**
 * Invoke a method using reflection but don't throw any exceptions.
 * Just log errors instead.
 *
 * @param obj    the object whose method should be invoked
 * @param method the name of the method to invoke
 * @param args   the arguments to pass to the method
 */
private void invokeIgnoreExceptions(Object obj, String method,
                  Object... args) {
  try {
    invoke(obj, method, args);
  } catch (NoSuchMethodException | InvocationTargetException | IllegalAccessException e) {
    logger.trace("Unable to log progress", e);
  }
}

代码示例来源:origin: gradle.plugin.com.github.kaklakariada.aws/aws-sam-gradle

public boolean stackExists(String stackName) {
  try {
    return describeStack(stackName).stream() //
        .peek(s -> logger.info("Found stack {}", s)) //
        .filter(s -> s.getStackName().equals(stackName)) //
        .anyMatch(s -> !s.getStackStatus().equals("REVIEW_IN_PROGRESS"));
  } catch (final AmazonCloudFormationException e) {
    if (e.getStatusCode() == 400) {
      logger.trace("Got exception {}", e.getMessage(), e);
      return false;
    }
    throw e;
  }
}

代码示例来源:origin: gradle.plugin.org.openrepose/gradle-linkchecker-plugin

Document document = Jsoup.parse(file, "UTF-8", file.getParentFile().getAbsolutePath());
for (String elementName : ELEMENTS_TO_ATTRIBUTES.keySet()) {
  log.trace("elementName = {}", elementName);
  Elements elements = document.select(elementName);
  String attributeName = ELEMENTS_TO_ATTRIBUTES.get(elementName);

代码示例来源:origin: SonarSource/sonar-scanner-gradle

@Override public void log(String formattedMessage, Level level) {
  switch (level) {
   case TRACE:
    LOGGER.trace(formattedMessage);
    return;
   case DEBUG:
    LOGGER.debug(formattedMessage);
    return;
   case INFO:
    LOGGER.info(formattedMessage);
    return;
   case WARN:
    LOGGER.warn(formattedMessage);
    return;
   case ERROR:
    LOGGER.error(formattedMessage);
    return;
   default:
    throw new IllegalArgumentException(level.name());
  }
 }
}

代码示例来源:origin: org.sonarsource.scanner.gradle/sonarqube-gradle-plugin

@Override public void log(String formattedMessage, Level level) {
  switch (level) {
   case TRACE:
    LOGGER.trace(formattedMessage);
    return;
   case DEBUG:
    LOGGER.debug(formattedMessage);
    return;
   case INFO:
    LOGGER.info(formattedMessage);
    return;
   case WARN:
    LOGGER.warn(formattedMessage);
    return;
   case ERROR:
    LOGGER.error(formattedMessage);
    return;
   default:
    throw new IllegalArgumentException(level.name());
  }
 }
}

代码示例来源:origin: classmethod/gradle-aws-plugin

getLogger().warn("stack {} not found", stackName);
} else if (e.getMessage().contains("No updates are to be performed.")) {
  getLogger().trace(e.getMessage());
} else {
  throw e;

代码示例来源:origin: classmethod/gradle-aws-plugin

getLogger().trace(e.getMessage());
} else {
  throw e;

代码示例来源:origin: com.android.tools.build/gradle-core

break;
case STATISTICS:
  project.getLogger().trace(humanReadableMessage(message));
  break;
case UNKNOWN:

相关文章