software.amazon.awssdk.utils.Logger.info()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(1.7k)|赞(0)|评价(0)|浏览(245)

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

Logger.info介绍

[英]Checks if info is enabled and if so logs the supplied message
[中]检查信息是否启用,如果启用,则记录提供的消息

代码示例

代码示例来源:origin: aws/aws-sdk-java-v2

private void copyFile(Path source, Path destination) throws IOException {
    if (source != null && Files.isRegularFile(source)) {
      log.info(() -> "Copying " + source + " to " + destination);
      FileUtils.copyFile(source.toFile(), destination.toFile());
    }
  }
}

代码示例来源:origin: aws/aws-sdk-java-v2

log.info(() -> "Got expected response: " + result);
    return result;
  } else if (whenToFail.test(result)) {
  log.info(() -> "Attempt " + unsuccessfulAttempt + " failed predicate.");
} catch (RuntimeException e) {
  Throwable t = e instanceof CompletionException ? e.getCause() : e;
    log.info(() -> "Got expected exception: " + t.getClass().getSimpleName());
    return null;
    log.info(() -> "Attempt " + unsuccessfulAttempt +
            " failed with an expected exception (" + t.getClass() + ")");
  } else {

代码示例来源:origin: software.amazon.awssdk/test-utils

log.info(() -> "Got expected response: " + result);
    return result;
  } else if (whenToFail.test(result)) {
  log.info(() -> "Attempt " + unsuccessfulAttempt + " failed predicate.");
} catch (RuntimeException e) {
  Throwable t = e instanceof CompletionException ? e.getCause() : e;
    log.info(() -> "Got expected exception: " + t.getClass().getSimpleName());
    return null;
    log.info(() -> "Attempt " + unsuccessfulAttempt +
            " failed with an expected exception (" + t.getClass() + ")");
  } else {

相关文章