lib/semantic_logger/appender/graylog.rb in semantic_logger-4.0.0.beta1 vs lib/semantic_logger/appender/graylog.rb in semantic_logger-4.0.0.beta2
- old
+ new
@@ -101,9 +101,10 @@
h = log.to_h(host, application)
h.delete(:time)
h[:timestamp] = log.time.utc.to_f
h[:level] = logger.map_level(log)
h[:level_str] = log.level.to_s
+ h[:duration_str] = h.delete(:duration)
h[:short_message] = h.delete(:message) if log.message
h
end
# Forward log messages