lib/log4r/logstash/formatter/json_formatter.rb in log4r-logstash-0.1.0 vs lib/log4r/logstash/formatter/json_formatter.rb in log4r-logstash-0.1.1

- old
+ new

@@ -10,10 +10,10 @@ data = {} data["type"] = "#{logevent.class}" data["index"] = "#{index}" data["timestamp"] = Time.now.getutc.iso8601 data[level_field_name] = LNAMES[logevent.level] - data[data_field_name] = logevent.data + data[data_field_name] = logevent.data.force_encoding("UTF-8") data.merge! eval_map_proc_values(additional_fields) data.to_json end def self.eval_map_proc_values(map)