Class: Metrica::Reporters::ConsoleReporter

Inherits:
ScheduledReporter show all
Defined in:
lib/metrica/reporters/console_reporter.rb

Overview

ConsoleReporter reports metrics by printing them out to the standard output.

Instance Attribute Summary

Attributes inherited from Metrica::Reporter

#underlying

Instance Method Summary collapse

Methods inherited from ScheduledReporter

#start

Methods inherited from Metrica::Reporter

#start, #stop

Constructor Details

#initialize(options = {}) ⇒ ConsoleReporter

Returns a new instance of ConsoleReporter


7
8
9
10
11
12
# File 'lib/metrica/reporters/console_reporter.rb', line 7

def initialize(options = {})
  super

  @underlying = com.codahale.metrics.ConsoleReporter.
    forRegistry(Metrica.registry).build
end