require 'ruby-metrics' require 'sqspoller/logger/logger' # Report local metrics in logs. module SqsPoller module Metrics class LogReporter def initialize(options = {}) @logger = SqsPoller::Logger.get_new_logger(self.class.name) end def report(agent) @logger.info(JSON.pretty_generate(agent.to_json)) end end end end