lib/timber/event.rb in timber-1.1.14 vs lib/timber/event.rb in timber-2.0.0

- old
+ new

@@ -8,9 +8,17 @@ def as_json(options = {}) raise NotImplementedError.new end + # This ensures that Timber events get logged as messages if they are passed to + # the standard ::Logger. + # + # See: https://github.com/ruby/ruby/blob/f6e77b9d3555c1fbaa8aab1cdc0bd6bde95f62c6/lib/logger.rb#L615 + def inspect + message + end + def to_json(options = {}) as_json.to_json(options) end def to_msgpack(*args) \ No newline at end of file