lib/betterlog/log/event_formatter.rb in betterlog-0.15.1 vs lib/betterlog/log/event_formatter.rb in betterlog-0.15.2
- old
+ new
@@ -16,10 +16,10 @@
f = cc.log.formats[format] and format = f
case pretty
when :format
format_pattern(format: format)
else
- @event.to_json
+ JSON.generate(@event)
end
ensure
Term::ANSIColor.coloring = old_coloring
end