lib/loggerstash.rb in loggerstash-0.0.3 vs lib/loggerstash.rb in loggerstash-0.0.4
- old
+ new
@@ -135,9 +135,10 @@
#
def default_formatter
@default_formatter ||= ->(s, t, p, m) do
{
"@timestamp": t.utc.strftime("%FT%T.%NZ"),
+ "@metadata": { _type: "loggerstash" },
message: m,
severity_name: s.downcase,
hostname: Socket.gethostname,
pid: $$,
}.tap do |ev|