@ Override public Slf4jMetricReporter init ( ConfigurationProperties configurationProperties , MetricRegistry metricRegistry ) { metricLogReporterMillis = configurationProperties . getMetricLogReporterMillis ( ) ; if ( metricLogReporterMillis > 0 ) { this . slf4jReporter = Slf4jReporter . forRegistry ( metricRegistry ) . outputTo ( LOGGER ) . build ( ) ; } return this ; }
Create a Log Reporter and activate it if the metricLogReporterMillis property is greater than zero .