James Netherton created CAMEL-9342:
--------------------------------------
Summary: Metrics component should log at debug level
Key: CAMEL-9342
URL: https://issues.apache.org/jira/browse/CAMEL-9342
Project: Camel
Issue Type: Improvement
Components: camel-metrics
Reporter: James Netherton
The metrics component does the following:
{code}
final Slf4jReporter reporter = Slf4jReporter.forRegistry(registry)
.outputTo(LOG)
.convertRatesTo(TimeUnit.SECONDS)
.convertDurationsTo(TimeUnit.MILLISECONDS)
.build();
{code}
This results in quite a bit of noise in application log files, as some (not
particularly useful) log output is generated each time the metrics thread runs.
It'd be better to force the log level for this output to DEBUG.
Adding something like the following should be sufficient:
{code}
.withLoggingLevel(Slf4jReporter.LoggingLevel.DEBUG)
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)