Sha256: 4ba5deb332e63d0f51c3b60b7324a719bc3220514aa3a2a8c40efa92114c254d
Contents?: true
Size: 372 Bytes
Versions: 1
Compression:
Stored size: 372 Bytes
Contents
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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fourkites-sqspoller-v2-1.0.0 | lib/sqspoller/metrics/log_reporter.rb |