Class: QueryOwl::Notifiers::Logger

Inherits:
Object
  • Object
show all
Defined in:
lib/query_owl/notifiers/logger.rb

Instance Method Summary collapse

Instance Method Details

#call(event) ⇒ Object



4
5
6
# File 'lib/query_owl/notifiers/logger.rb', line 4

def call(event)
  ::Rails.logger.public_send(QueryOwl.config.log_level, "#{QueryOwl::Logger::PREFIX} #{event.to_json}")
end