class NewRelic::Agent::Logging::DecoratingFormatter

This class can be used as the formatter for an existing logger. It decorates log messages with trace and entity metadata, and formats each log messages as a JSON object.

It can be added to a Rails application like this:

require 'newrelic_rpm'

Rails.application.configure do
  config.log_formatter = ::NewRelic::Agent::Logging::DecoratingFormatter.new
end

@api public