Class: RabbitHutch::ConsoleConsumer
- Inherits:
-
Object
- Object
- RabbitHutch::ConsoleConsumer
- Defined in:
- lib/consumers/console_consumer.rb
Instance Method Summary collapse
-
#initialize ⇒ ConsoleConsumer
constructor
A new instance of ConsoleConsumer.
- #log_event(item) ⇒ Object
Constructor Details
#initialize ⇒ ConsoleConsumer
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 19 |
# File 'lib/consumers/console_consumer.rb', line 12 def log_event(item) begin puts "console" puts item rescue Exception => e puts "Error occurred Message Handler trying to write messages to Log #{e.inspect}" end end |