Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
-
Novice
Description
The metrics component does the following:
final Slf4jReporter reporter = Slf4jReporter.forRegistry(registry)
.outputTo(LOG)
.convertRatesTo(TimeUnit.SECONDS)
.convertDurationsTo(TimeUnit.MILLISECONDS)
.build();
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:
.withLoggingLevel(Slf4jReporter.LoggingLevel.DEBUG)