Struct cadence::LoggingMetricSink
[−]
[src]
pub struct LoggingMetricSink { /* fields omitted */ }
Deprecated since 0.9.0
: If you with to use a logging MetricSink please copy the functionality into your own project. This will be removed in version 1.0.0
Implementation of a MetricSink
that emits metrics using thelog!
macro.
Metrics are emitted using the LogLevel
provided at construction with a target
of cadence::metrics
. Note that the number of bytes written returned by emit
does not reflect if the provided log level is high enough to be active.
Methods
impl LoggingMetricSink
[src]
fn new(level: LogLevel) -> LoggingMetricSink
Trait Implementations
impl Debug for LoggingMetricSink
[src]
impl Clone for LoggingMetricSink
[src]
fn clone(&self) -> LoggingMetricSink
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more