public static class JsonReporter.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
JsonReporter |
build()
Builds a
Slf4jReporter with the given properties. |
JsonReporter.Builder |
convertDurationsTo(TimeUnit durationUnit)
Convert durations to the given time unit.
|
JsonReporter.Builder |
convertRatesTo(TimeUnit rateUnit)
Convert rates to the given time unit.
|
JsonReporter.Builder |
filter(com.codahale.metrics.MetricFilter filter)
Only report metrics which match the given filter.
|
JsonReporter.Builder |
markWith(org.slf4j.Marker marker)
Mark all logged metrics with the given marker.
|
JsonReporter.Builder |
outputTo(org.slf4j.Logger logger)
Log metrics to the given logger.
|
JsonReporter.Builder |
withLoggingLevel(JsonReporter.JsonLoggingLevel loggingLevel)
Use Logging Level when reporting.
|
public JsonReporter.Builder outputTo(org.slf4j.Logger logger)
logger - an SLF4J Loggerthispublic JsonReporter.Builder markWith(org.slf4j.Marker marker)
marker - an SLF4J Markerthispublic JsonReporter.Builder convertRatesTo(TimeUnit rateUnit)
rateUnit - a unit of timethispublic JsonReporter.Builder convertDurationsTo(TimeUnit durationUnit)
durationUnit - a unit of timethispublic JsonReporter.Builder filter(com.codahale.metrics.MetricFilter filter)
filter - a MetricFilterthispublic JsonReporter.Builder withLoggingLevel(JsonReporter.JsonLoggingLevel loggingLevel)
loggingLevel - a (@link Slf4jReporter.LoggingLevel}thispublic JsonReporter build()
Slf4jReporter with the given properties.Slf4jReporterCopyright © 2020. All rights reserved.