Class: ThinkingSphinx::Logger

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

Class Method Summary collapse

Class Method Details

.log(notification, message, &block) ⇒ Object



4
5
6
7
8
# File 'lib/thinking_sphinx/logger.rb', line 4

def self.log(notification, message, &block)
  ActiveSupport::Notifications.instrument(
    "#{notification}.thinking_sphinx", notification => message, &block
  )
end