lib/loggerstash.rb in loggerstash-0.0.2 vs lib/loggerstash.rb in loggerstash-0.0.3

- old
+ new

@@ -134,12 +134,14 @@ # event. # def default_formatter @default_formatter ||= ->(s, t, p, m) do { - "@timestamp" => t.utc.strftime("%FT%T.%NZ"), - message: m, - severity: s.downcase, + "@timestamp": t.utc.strftime("%FT%T.%NZ"), + message: m, + severity_name: s.downcase, + hostname: Socket.gethostname, + pid: $$, }.tap do |ev| ev[:progname] = p if p end end end