diff --git a/src/main/java/org/elasticsearch/cloud/azure/blobstore/AzureBlobContainer.java b/src/main/java/org/elasticsearch/cloud/azure/blobstore/AzureBlobContainer.java index 6d8c9abb69a..854552d7c7e 100644 --- a/src/main/java/org/elasticsearch/cloud/azure/blobstore/AzureBlobContainer.java +++ b/src/main/java/org/elasticsearch/cloud/azure/blobstore/AzureBlobContainer.java @@ -27,7 +27,7 @@ import org.elasticsearch.common.blobstore.BlobPath; import org.elasticsearch.common.blobstore.support.AbstractBlobContainer; import org.elasticsearch.common.collect.ImmutableMap; import org.elasticsearch.common.logging.ESLogger; -import org.elasticsearch.common.logging.ESLoggerFactory; +import org.elasticsearch.common.logging.Loggers; import java.io.FileNotFoundException; import java.io.IOException; @@ -41,7 +41,7 @@ import java.net.URISyntaxException; */ public class AzureBlobContainer extends AbstractBlobContainer { - protected final ESLogger logger = ESLoggerFactory.getLogger(AzureBlobContainer.class.getName()); + protected final ESLogger logger = Loggers.getLogger(AzureBlobContainer.class); protected final AzureBlobStore blobStore; protected final String keyPath; diff --git a/src/main/java/org/elasticsearch/plugin/cloud/azure/CloudAzurePlugin.java b/src/main/java/org/elasticsearch/plugin/cloud/azure/CloudAzurePlugin.java index 469ce6a0ddb..e4122e4ef7f 100644 --- a/src/main/java/org/elasticsearch/plugin/cloud/azure/CloudAzurePlugin.java +++ b/src/main/java/org/elasticsearch/plugin/cloud/azure/CloudAzurePlugin.java @@ -23,7 +23,7 @@ import org.elasticsearch.cloud.azure.AzureModule; import org.elasticsearch.common.collect.Lists; import org.elasticsearch.common.inject.Module; import org.elasticsearch.common.logging.ESLogger; -import org.elasticsearch.common.logging.ESLoggerFactory; +import org.elasticsearch.common.logging.Loggers; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.plugins.AbstractPlugin; import org.elasticsearch.repositories.RepositoriesModule; @@ -38,7 +38,7 @@ import java.util.Collection; public class CloudAzurePlugin extends AbstractPlugin { private final Settings settings; - private final ESLogger logger = ESLoggerFactory.getLogger(CloudAzurePlugin.class.getName()); + protected final ESLogger logger = Loggers.getLogger(CloudAzurePlugin.class); public CloudAzurePlugin(Settings settings) { this.settings = settings;