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

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

本文整理了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

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

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

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

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

  1. @Override
  2. public void trace(Throwable exception) {
  3. LOGGER.trace(exception.getMessage());
  4. }
  5. }

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

  1. /**
  2. * Invoke a method using reflection but don't throw any exceptions.
  3. * Just log errors instead.
  4. * @param obj the object whose method should be invoked
  5. * @param method the name of the method to invoke
  6. * @param args the arguments to pass to the method
  7. */
  8. private void invokeIgnoreExceptions(Object obj, String method,
  9. Object... args) {
  10. try {
  11. invoke(obj, method, args);
  12. } catch (NoSuchMethodException e) {
  13. logger.trace("Unable to log progress", e);
  14. } catch (InvocationTargetException e) {
  15. logger.trace("Unable to log progress", e);
  16. } catch (IllegalAccessException e) {
  17. logger.trace("Unable to log progress", e);
  18. }
  19. }

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

  1. /**
  2. * Invoke a method using reflection but don't throw any exceptions.
  3. * Just log errors instead.
  4. * @param obj the object whose method should be invoked
  5. * @param method the name of the method to invoke
  6. * @param args the arguments to pass to the method
  7. */
  8. private void invokeIgnoreExceptions(Object obj, String method,
  9. Object... args) {
  10. try {
  11. invoke(obj, method, args);
  12. } catch (NoSuchMethodException e) {
  13. logger.trace("Unable to log progress", e);
  14. } catch (InvocationTargetException e) {
  15. logger.trace("Unable to log progress", e);
  16. } catch (IllegalAccessException e) {
  17. logger.trace("Unable to log progress", e);
  18. }
  19. }

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

  1. /**
  2. * Invoke a method using reflection but don't throw any exceptions.
  3. * Just log errors instead.
  4. *
  5. * @param obj the object whose method should be invoked
  6. * @param method the name of the method to invoke
  7. * @param args the arguments to pass to the method
  8. */
  9. private void invokeIgnoreExceptions(Object obj, String method,
  10. Object... args) {
  11. try {
  12. invoke(obj, method, args);
  13. } catch (NoSuchMethodException | InvocationTargetException | IllegalAccessException e) {
  14. logger.trace("Unable to log progress", e);
  15. }
  16. }

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

  1. public boolean stackExists(String stackName) {
  2. try {
  3. return describeStack(stackName).stream() //
  4. .peek(s -> logger.info("Found stack {}", s)) //
  5. .filter(s -> s.getStackName().equals(stackName)) //
  6. .anyMatch(s -> !s.getStackStatus().equals("REVIEW_IN_PROGRESS"));
  7. } catch (final AmazonCloudFormationException e) {
  8. if (e.getStatusCode() == 400) {
  9. logger.trace("Got exception {}", e.getMessage(), e);
  10. return false;
  11. }
  12. throw e;
  13. }
  14. }

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

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

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

  1. @Override public void log(String formattedMessage, Level level) {
  2. switch (level) {
  3. case TRACE:
  4. LOGGER.trace(formattedMessage);
  5. return;
  6. case DEBUG:
  7. LOGGER.debug(formattedMessage);
  8. return;
  9. case INFO:
  10. LOGGER.info(formattedMessage);
  11. return;
  12. case WARN:
  13. LOGGER.warn(formattedMessage);
  14. return;
  15. case ERROR:
  16. LOGGER.error(formattedMessage);
  17. return;
  18. default:
  19. throw new IllegalArgumentException(level.name());
  20. }
  21. }
  22. }

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

  1. @Override public void log(String formattedMessage, Level level) {
  2. switch (level) {
  3. case TRACE:
  4. LOGGER.trace(formattedMessage);
  5. return;
  6. case DEBUG:
  7. LOGGER.debug(formattedMessage);
  8. return;
  9. case INFO:
  10. LOGGER.info(formattedMessage);
  11. return;
  12. case WARN:
  13. LOGGER.warn(formattedMessage);
  14. return;
  15. case ERROR:
  16. LOGGER.error(formattedMessage);
  17. return;
  18. default:
  19. throw new IllegalArgumentException(level.name());
  20. }
  21. }
  22. }

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

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

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

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

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

  1. break;
  2. case STATISTICS:
  3. project.getLogger().trace(humanReadableMessage(message));
  4. break;
  5. case UNKNOWN:

相关文章