class SmartLoggerWrapper::Options::AppendBacktrace
Public Instance Methods
apply!(messages, arguments, severity, wrapper)
click to toggle source
# File lib/smart_logger_wrapper/options/append_backtrace.rb, line 10 def apply!(messages, arguments, severity, wrapper) length = arguments.first.is_a?(Numeric) ? arguments.first : nil messages << [ 'BACKTRACE:', *get_backtrace(wrapper.offset + APPLY_CALLER_STACK_DEPTH + 1, length) ].join("\n") end