Class: RabbitHutch::ConsoleConsumer

Inherits:
Object
  • Object
show all
Defined in:
lib/consumers/console_consumer.rb

Instance Method Summary collapse

Constructor Details

#initializeConsoleConsumer

Returns a new instance of ConsoleConsumer.



8
9
10
# File 'lib/consumers/console_consumer.rb', line 8

def initialize()
  puts "\tInitializing Console Consumer"
end

Instance Method Details

#log_event(item) ⇒ Object



12
13
14
15
16
17
18
# File 'lib/consumers/console_consumer.rb', line 12

def log_event(item)
  begin  
    puts item
  rescue Exception => e
    puts "Error occurred Message Handler trying to write messages to Log #{e.inspect}" 
  end
end