Class: Woodchuck::Output::ZeroMQ

Inherits:
Woodchuck::Output show all
Defined in:
lib/woodchuck/output/zeromq.rb

Instance Attribute Summary

Attributes inherited from Woodchuck::Output

#host, #logger, #type

Instance Method Summary collapse

Constructor Details

#initializeZeroMQ

Returns a new instance of ZeroMQ.



4
5
6
7
# File 'lib/woodchuck/output/zeromq.rb', line 4

def initialize
  super
  @type = :zeromq
end

Instance Method Details

#handle(event) ⇒ Object



9
10
11
# File 'lib/woodchuck/output/zeromq.rb', line 9

def handle(event)
  @logger.info event.message, event.to_hash
end