class YARD::Logger

def backtrace(exc, level_meth = :error)

Returns:
  • (void) -

Parameters:
  • level_meth (Symbol) -- the level to log backtrace at
  • exc (Array) -- the backtrace list
def backtrace(exc, level_meth = :error)
  return unless show_backtraces
  send(level_meth, "#{exc.class.class_name}: #{exc.message}")
  send(level_meth, "Stack trace:" +
    exc.backtrace[0..5].map {|x| "\n\t#{x}" }.join + "\n")
end