[
https://issues.apache.org/jira/browse/CAMEL-9342?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15020348#comment-15020348
]
Claus Ibsen commented on CAMEL-9342:
------------------------------------
Yeah and maybe add an option to allow to configure the logging level and set it
to DEBUG by default.
> 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)