Class: Eventish::Plugins::RailsLogger

Inherits:
Object
  • Object
show all
Defined in:
lib/eventish/plugins/rails_logger.rb

Class Method Summary collapse

Class Method Details

.call(target, _args, event:, hook: nil, &_block) ⇒ Object



7
8
9
# File 'lib/eventish/plugins/rails_logger.rb', line 7

def call(target, _args, event:, hook: nil, &_block)
  ::Rails.logger.debug "EVENT: #{hook} #{event.class.event_name} on #{target.inspect}"
end