Sha256: 5a7fabca848ce775b2dce11684d96a4c4a3a7b1a6d9fc007aa25da2cda1f0bd9
Contents?: true
Size: 390 Bytes
Versions: 30
Compression:
Stored size: 390 Bytes
Contents
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
30 entries across 28 versions & 9 rubygems