Class: SqsPoller::Metrics::LogReporter
- Inherits:
-
Object
- Object
- SqsPoller::Metrics::LogReporter
- Defined in:
- lib/sqspoller/metrics/log_reporter.rb
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ LogReporter
constructor
A new instance of LogReporter.
- #report(agent) ⇒ Object
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( = {}) @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 |