Module: Datadog::Loggers::JSONFormatter::ExceptionFormatter
- Defined in:
- lib/datadog/loggers/json_formatter.rb
Class Method Summary collapse
Class Method Details
.format(log_hash, exception) ⇒ Object
69 70 71 72 73 74 75 76 77 78 |
# File 'lib/datadog/loggers/json_formatter.rb', line 69 def format(log_hash, exception) log_hash.merge!( message: exception.inspect, error: { kind: exception.class, message: exception., stack: (exception.backtrace || []).join("\n") } ) end |