Class: SidekiqVigil::Notifier::Log

Inherits:
Base
  • Object
show all
Defined in:
lib/sidekiq_vigil/notifier/log.rb

Instance Attribute Summary

Attributes inherited from Base

#logger, #options

Instance Method Summary collapse

Methods inherited from Base

#initialize, #inspect

Constructor Details

This class inherits a constructor from SidekiqVigil::Notifier::Base

Instance Method Details

#notify(event) ⇒ Object



8
9
10
11
# File 'lib/sidekiq_vigil/notifier/log.rb', line 8

def notify(event)
  logger.warn("[sidekiq-vigil] #{JSON.generate(event.to_h)}")
  true
end