Class: Alchemy::ErrorTracking::ErrorLogger

Inherits:
BaseHandler
  • Object
show all
Defined in:
lib/alchemy/error_tracking/error_logger.rb

Class Method Summary collapse

Class Method Details

.call(exception) ⇒ Object



6
7
8
9
10
# File 'lib/alchemy/error_tracking/error_logger.rb', line 6

def self.call(exception)
  ::Rails.logger.tagged("alchemy_cms") do
    ::Rails.logger.error("#{exception.class.name}: #{exception.message} in #{exception.backtrace.first}")
  end
end