diff --git a/lib/formatters/ansi_formatter.rb b/lib/formatters/ansi_formatter.rb index 226803b..10f40ff 100644 --- a/lib/formatters/ansi_formatter.rb +++ b/lib/formatters/ansi_formatter.rb @@ -166,6 +166,12 @@ class AnsiFormatter < SemanticLogger::Formatters::Color colorize(log.message) if log.message end + def payload + return unless log.payload + + log.payload.ai(indent: 2, object_id: false) + end + def exception return unless log.exception