6 7 8 9 10 11 12 13 14 15
# File 'lib/query_owl/file_logger.rb', line 6 def append(events) return if events.empty? path = QueryOwl.config.log_file return unless path File.open(path, "a") do |f| events.each { |e| f.puts(JSON.generate(serializable(e))) } end end