Parent

Methods

Files

Lumberjack::Formatter::ExceptionFormatter

Format an exception including the backtrace.

Public Instance Methods

call(exception) click to toggle source
# File lib/lumberjack/formatter/exception_formatter.rb, line 5
def call(exception)
  message = "#{exception.class.name}: #{exception.message}"
  message << "#{Lumberjack::LINE_SEPARATOR}  #{exception.backtrace.join("#{Lumberjack::LINE_SEPARATOR}  ")}" if exception.backtrace
  message
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.