[cleanup] Change Logger factory

Related to #52

(cherry picked from commit a6435ab)
(cherry picked from commit f82ee58)
This commit is contained in:
David Pilato 2015-02-04 14:14:59 +01:00
parent 3afe59ff69
commit 68fdedf91d
2 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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;