lib/event.rb
# write the recieved messages to disc
write the recieved messages to disc
write the recieved messages to disc
def run
      loop do
        File.open('logs/master_audit.log', 'a') do |log|
          log.puts message_from_queue
        end
        sleep 1.0
      end
    end
def run loop do File . open ( 'logs/master_audit.log' , 'a' ) do | log | log . puts message_from_queue end sleep 1.0 end end
write the recieved messages to disc
write the recieved messages to disc