Class: Lumberjack::Formatter::ExceptionFormatter
- Inherits:
-
Object
- Object
- Lumberjack::Formatter::ExceptionFormatter
- Defined in:
- lib/lumberjack/formatter/exception_formatter.rb
Overview
Format an exception including the backtrace.
Instance Method Summary collapse
Instance Method Details
#call(exception) ⇒ Object
7 8 9 10 11 |
# File 'lib/lumberjack/formatter/exception_formatter.rb', line 7 def call(exception) = "#{exception.class.name}: #{exception.}" << "#{Lumberjack::LINE_SEPARATOR} #{exception.backtrace.join("#{Lumberjack::LINE_SEPARATOR} ")}" if exception.backtrace end |