lib/liquid/metrics/logger_reporter.rb in liquid-ext-2.0.3 vs lib/liquid/metrics/logger_reporter.rb in liquid-ext-3.0.0
- old
+ new
@@ -1,16 +1,13 @@
require 'liquid/metrics/reporter'
module Metrics
class LoggerReporter < Reporter
- attr_accessor :logger
- attr_accessor :marker
-
- def initialize(registry)
+ def initialize(logger)
super
- @logger = $log
- @marker = "metriks:"
+ @logger = logger
+ @marker = "metrics:"
end
def report_gauge(name, gauge)
@logger.info(@marker, super)
end