Remove logging config from jmxfetch setup
It already uses slf4j
MODIFY
dd-java-agent/agent-jmxfetch/src/main/java/datadog/trace/agent/jmxfetch/JMXFetch.java
dd-java-agent/agent-jmxfetch/src/main/java/datadog/trace/agent/jmxfetch/JMXFetch.java
@@ -55,11 +55,9 @@ public class JMXFetch {
final Integer refreshBeansPeriod = config.getJmxFetchRefreshBeansPeriod();
final Map<String, String> globalTags = config.getMergedJmxTags();
final String reporter = getReporter(config);
- final String logLocation = getLogLocation();
- final String logLevel = getLogLevel();
log.info(
- "JMXFetch config: {} {} {} {} {} {} {} {} {} {}",
+ "JMXFetch config: {} {} {} {} {} {} {} {}",
jmxFetchConfigDir,
jmxFetchConfigs,
internalMetricsConfigs,
@@ -67,9 +65,7 @@ public class JMXFetch {
checkPeriod,
refreshBeansPeriod,
globalTags,
- reporter,
- logLocation,
- logLevel);
+ reporter);
final AppConfig.AppConfigBuilder configBuilder =
AppConfig.builder()
@@ -84,9 +80,7 @@ public class JMXFetch {
.metricConfigFiles(metricsConfigs)
.refreshBeansPeriod(refreshBeansPeriod)
.globalTags(globalTags)
- .reporter(ReporterFactory.getReporter(reporter))
- .logLocation(logLocation)
- .logLevel(logLevel);
+ .reporter(ReporterFactory.getReporter(reporter));
if (checkPeriod != null) {
configBuilder.checkPeriod(checkPeriod);

Remove logging config from jmxfetch setup

It already uses slf4j