require 'liquid/metrics/reporter' module Metrics class LoggerReporter < Reporter attr_accessor :logger attr_accessor :marker def initialize(registry) super @logger = $log @marker = "metriks:" end def report_gauge(name, gauge) @logger.info(@marker, super) end def report_counter(name, counter) @logger.info(@marker, super) end def report_histogram(name, histogram) @logger.info(@marker, super) end def report_meter(name, meter) @logger.info(@marker, super) end def report_timer(name, timer) @logger.info(@marker, super) end end end