Class: SqsPoller::Metrics::LogReporter

Inherits:
Object
  • Object
show all
Defined in:
lib/sqspoller/metrics/log_reporter.rb

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ LogReporter

Returns a new instance of LogReporter.



9
10
11
# File 'lib/sqspoller/metrics/log_reporter.rb', line 9

def initialize(options = {})
  @logger = SqsPoller::Logger.get_new_logger(self.class.name)
end

Instance Method Details

#report(agent) ⇒ Object



13
14
15
# File 'lib/sqspoller/metrics/log_reporter.rb', line 13

def report(agent)
  @logger.info(JSON.pretty_generate(agent.to_json))
end