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

Version Path
comiditaULL-0.1.1 vendor/bundle/ruby/2.3.0/gems/lumberjack-1.0.12/lib/lumberjack/formatter/exception_formatter.rb
comidita_ull-0.1.1 vendor/bundle/ruby/2.3.0/gems/lumberjack-1.0.12/lib/lumberjack/formatter/exception_formatter.rb
comidita_ull-0.1.0 vendor/bundle/ruby/2.3.0/gems/lumberjack-1.0.12/lib/lumberjack/formatter/exception_formatter.rb
lumberjack-1.0.12 lib/lumberjack/formatter/exception_formatter.rb
lumberjack-1.0.11 lib/lumberjack/formatter/exception_formatter.rb
gameboard-3.1.0 vendor/bundle/ruby/2.3.0/gems/lumberjack-1.0.10/lib/lumberjack/formatter/exception_formatter.rb
gameboard-3.0.0 vendor/bundle/ruby/2.3.0/gems/lumberjack-1.0.10/lib/lumberjack/formatter/exception_formatter.rb
honeybadger-2.4.0 vendor/gems/ruby/2.2.0/gems/lumberjack-1.0.9/lib/lumberjack/formatter/exception_formatter.rb
honeybadger-2.4.0 vendor/gems/ruby/1.9.1/gems/lumberjack-1.0.9/lib/lumberjack/formatter/exception_formatter.rb
honeybadger-2.4.0 vendor/gems/ruby/2.1.0/gems/lumberjack-1.0.9/lib/lumberjack/formatter/exception_formatter.rb
lumberjack-1.0.10 lib/lumberjack/formatter/exception_formatter.rb
mastermind_adeybee-0.1.4 vendor/bundle/ruby/2.2.0/gems/lumberjack-1.0.9/lib/lumberjack/formatter/exception_formatter.rb
mastermind_adeybee-0.1.3 vendor/bundle/ruby/2.2.0/gems/lumberjack-1.0.9/lib/lumberjack/formatter/exception_formatter.rb
mastermind_adeybee-0.1.2 vendor/bundle/ruby/2.2.0/gems/lumberjack-1.0.9/lib/lumberjack/formatter/exception_formatter.rb
mastermind_adeybee-0.1.1 vendor/bundle/ruby/2.2.0/gems/lumberjack-1.0.9/lib/lumberjack/formatter/exception_formatter.rb
geminfo-0.1.0 path/gems/lumberjack-1.0.9/lib/lumberjack/formatter/exception_formatter.rb
lumberjack-1.0.9 lib/lumberjack/formatter/exception_formatter.rb
lumberjack-1.0.8 lib/lumberjack/formatter/exception_formatter.rb
lumberjack-1.0.7 lib/lumberjack/formatter/exception_formatter.rb
lumberjack-1.0.6 lib/lumberjack/formatter/exception_formatter.rb