Class LoggingMetricsPersister
java.lang.Object
com.j256.simplemetrics.persister.LoggingMetricsPersister
- All Implemented Interfaces:
MetricValuesPersister
Publishes metrics to the java.util.Logger class using the
Logger.info(String) method.- Author:
- graywatson
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidpersist(Map<ControlledMetric<?, ?>, Number> metricValues, long timeMillis) Persists the metrics parameters to disk or some repository.
-
Constructor Details
-
LoggingMetricsPersister
public LoggingMetricsPersister()
-
-
Method Details
-
persist
Description copied from interface:MetricValuesPersisterPersists the metrics parameters to disk or some repository.- Specified by:
persistin interfaceMetricValuesPersister- Parameters:
metricValues- The collection of metric and metric-values we are persisting.timeMillis- The time in millis when the metrics were collected.
-