Sha256: 48cb63c1968a0cb2be5d8d970980a1950c366595716a35ca8472939e7309c6e6

Contents?: true

Size: 336 Bytes

Versions: 59

Compression:

Stored size: 336 Bytes

Contents

# frozen_string_literal: true

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

Version data entries

59 entries across 59 versions & 1 rubygems

Version Path
alchemy_cms-7.0.4 lib/alchemy/error_tracking/error_logger.rb
alchemy_cms-7.0.3 lib/alchemy/error_tracking/error_logger.rb
alchemy_cms-6.1.9 lib/alchemy/error_tracking/error_logger.rb
alchemy_cms-7.0.2 lib/alchemy/error_tracking/error_logger.rb
alchemy_cms-6.1.8 lib/alchemy/error_tracking/error_logger.rb
alchemy_cms-6.1.7 lib/alchemy/error_tracking/error_logger.rb
alchemy_cms-7.0.1 lib/alchemy/error_tracking/error_logger.rb
alchemy_cms-7.0.0 lib/alchemy/error_tracking/error_logger.rb
alchemy_cms-7.0.0.pre.rc1 lib/alchemy/error_tracking/error_logger.rb
alchemy_cms-6.1.6 lib/alchemy/error_tracking/error_logger.rb
alchemy_cms-7.0.0.pre.c lib/alchemy/error_tracking/error_logger.rb
alchemy_cms-7.0.0.pre.b lib/alchemy/error_tracking/error_logger.rb
alchemy_cms-6.1.5 lib/alchemy/error_tracking/error_logger.rb
alchemy_cms-6.1.4 lib/alchemy/error_tracking/error_logger.rb
alchemy_cms-7.0.0.pre.a lib/alchemy/error_tracking/error_logger.rb
alchemy_cms-6.1.3 lib/alchemy/error_tracking/error_logger.rb
alchemy_cms-6.1.2 lib/alchemy/error_tracking/error_logger.rb
alchemy_cms-6.1.1 lib/alchemy/error_tracking/error_logger.rb
alchemy_cms-6.1.0 lib/alchemy/error_tracking/error_logger.rb