LogReporter class

A reporter class for logging metrics values to a Logger periodically, similar to ConsoleReporter or CsvReporter, but using the logging package instead.

Inheritance

Constructors

LogReporter(MetricRegistry registry, {Logger? logger, Level? level, TimeUnit? rateUnit, TimeUnit? durationUnit, MetricFilter? where})
factory

Properties

durationUnit TimeUnit
finalinherited
hashCode int
The hash code for this object.
no setterinherited
rateUnit TimeUnit
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
where MetricFilter?
finalinherited

Methods

convertDuration(num duration) double
inherited
convertRate(double rate) double
inherited
logCounter(String name, Counter counter) → void
logGauge(String name, Gauge gauge) → void
logHistogram(String name, Histogram histogram) → void
logMeter(String name, Meter meter) → void
logTimer(String name, Timer timer) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
report() → void
Report the current values of all metrics in the registry.
inherited
reportMetrics({Map<String, Gauge>? gauges, Map<String, Counter>? counters, Map<String, Histogram>? histograms, Map<String, Meter>? meters, Map<String, Timer>? timers}) → void
Called periodically by the polling thread. Subclasses should report all the given metrics.
override
start(Duration period) → void
Starts the reporter polling at the given period (the amount of time between polls).
inherited
stop() → void
Stops the reporter.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited