# File lib/cabin/outputs/em/stdlib-logger.rb, line 15 def consumer line_sender = Proc.new do |line| # This will call @logger.info(data) or something similar @logger.send(line[:method], line[:message]) EM::next_tick do # Pop another line off the queue and do it again @logger_queue.pop(&line_sender) end end # Pop a line off the queue and send it with logger @logger_queue.pop(&line_sender) end