camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Netherton (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CAMEL-9342) Metrics component should log at debug level
Date Fri, 20 Nov 2015 08:32:11 GMT
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)

Mime
View raw message