Revert "SOLR-11795: avoid using static class name for logger"

This reverts commit a31a8dae2e.
This commit is contained in:
koji 2018-02-21 00:24:53 +09:00
parent a31a8dae2e
commit 74793a9134
3 changed files with 3 additions and 3 deletions

View File

@ -53,7 +53,7 @@ import java.util.concurrent.TimeUnit;
* SolrCollector
*/
public class SolrCollector extends Collector implements Collector.Describable {
private static final Logger logger = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());
private static final Logger logger = LoggerFactory.getLogger(SolrCollector.class);
private SolrClient solrClient;
private SolrCollectorConfig config = new SolrCollectorConfig();

View File

@ -49,7 +49,7 @@ import java.util.regex.Pattern;
* SolrExporter
*/
public class SolrExporter {
private static final Logger logger = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());
private static final Logger logger = LoggerFactory.getLogger(SolrExporter.class);
private static final String[] ARG_PORT_FLAGS = { "-p", "--port" };
private static final String ARG_PORT_METAVAR = "PORT";

View File

@ -46,7 +46,7 @@ import java.util.concurrent.Callable;
* SolrScraper
*/
public class SolrScraper implements Callable<Map<String, Collector.MetricFamilySamples>> {
private static final Logger logger = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());
private static final Logger logger = LoggerFactory.getLogger(SolrScraper.class);
private SolrClient solrClient;
private SolrScraperConfig scraperConfig;