Class: Messagebus::Logging::MyLogger

Inherits:
Logger
  • Object
show all
Defined in:
lib/messagebus/logger.rb

Instance Method Summary collapse

Instance Method Details

#error(message, exception = nil) ⇒ Object



36
37
38
39
40
41
42
# File 'lib/messagebus/logger.rb', line 36

def error(message, exception=nil)
  if exception
    message += "\n" + exception.message + "\n" + exception.backtrace.join("\n")
  end
  
  super(message)
end