Method: DaemonKit::AbstractLogger#exception

Defined in:
lib/daemon_kit/abstract_logger.rb

#exception(e) ⇒ Object

Conveniently log an exception and the backtrace



121
122
123
124
# File 'lib/daemon_kit/abstract_logger.rb', line 121

def exception( e )
  message = "EXCEPTION: #{e.message}: #{clean_trace( e.backtrace )}"
  self.add( :error, message, true )
end