org.embulk.spi.Exec.getLogger()方法的使用及代码示例

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

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

Exec.getLogger介绍

暂无

代码示例

代码示例来源:origin: embulk/embulk-output-elasticsearch

public ElasticsearchHttpClient()
{
  this.log = Exec.getLogger(getClass());
}

代码示例来源:origin: embulk/embulk-output-elasticsearch

public ElasticsearchOutputPluginDelegate()
{
  this.log = Exec.getLogger(getClass());
  this.client = new ElasticsearchHttpClient();
}

代码示例来源:origin: embulk/embulk-output-elasticsearch

public ElasticsearchRecordBuffer(String attributeName, PluginTask task)
{
  this.attributeName = attributeName;
  this.task = task;
  this.bulkActions = task.getBulkActions();
  this.bulkSize = task.getBulkSize();
  this.client = new ElasticsearchHttpClient();
  this.mapper = new ObjectMapper()
      .configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false)
      .configure(com.fasterxml.jackson.core.JsonParser.Feature.ALLOW_UNQUOTED_CONTROL_CHARS, false);
  this.records = JsonNodeFactory.instance.arrayNode();
  this.totalCount = 0;
  this.requestCount = 0;
  this.requestBytes = 0;
  this.log = Exec.getLogger(getClass());
}

代码示例来源:origin: embulk/embulk-input-s3

if (s.getStorageClass().equals(StorageClass.Glacier.toString())) {
  if (skipGlacierObjects) {
    Exec.getLogger("AbstractS3FileInputPlugin.class").warn("Skipped \"s3://{}/{}\" that stored at Glacier.", bucketName, s.getKey());
    continue;

代码示例来源:origin: embulk/embulk-input-s3

final Logger log = Exec.getLogger(AwsCredentials.class);
log.warn("Both '{}' and '{}' are not set. Assuming that '{}: anonymous' option is set.",
    accessKeyIdOption, secretAccessKeyOption, authMethodOption);

相关文章