Parent

Methods

Class/Module Index [+]

Quicksearch

Cinch::Logger::FormattedLogger

@version 2.0.0

Constants

Colors

@private

Public Instance Methods

exception(e) click to toggle source

(see Logger#exception)

# File lib/cinch/logger/formatted_logger.rb, line 20
def exception(e)
  lines = ["#{e.backtrace.first}: #{e.message} (#{e.class})"]
  lines.concat e.backtrace[1..-1].map {|s| "\t" + s}
  log(lines, :exception, :error)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.