Module: DLogger::Output::LogStashHandler
- Defined in:
- lib/dlogger/outputs/em/logstash.rb
Instance Method Summary collapse
Instance Method Details
#initialize(master) ⇒ Object
8 9 10 |
# File 'lib/dlogger/outputs/em/logstash.rb', line 8 def initialize(master) @master = master end |
#unbind ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/dlogger/outputs/em/logstash.rb', line 12 def unbind if @master tmp = @master EM::add_timer(0.2){ tmp.connect } @master = nil end end |