Sha256: b701908e91bf8972821de290336690710c60791f0626e31457eae1690324f9ba
Contents?: true
Size: 422 Bytes
Versions: 6
Compression:
Stored size: 422 Bytes
Contents
# frozen_string_literals: true module Lumberjack class Formatter # Format an exception including the backtrace. class ExceptionFormatter def call(exception) message = "#{exception.class.name}: #{exception.message}" message << "#{Lumberjack::LINE_SEPARATOR} #{exception.backtrace.join("#{Lumberjack::LINE_SEPARATOR} ")}" if exception.backtrace message end end end end
Version data entries
6 entries across 6 versions & 3 rubygems