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.3.4 lib/alchemy/error_tracking/error_logger.rb
alchemy_cms-7.3.3 lib/alchemy/error_tracking/error_logger.rb
alchemy_cms-7.3.2 lib/alchemy/error_tracking/error_logger.rb
alchemy_cms-7.2.7 lib/alchemy/error_tracking/error_logger.rb
alchemy_cms-7.3.1 lib/alchemy/error_tracking/error_logger.rb
alchemy_cms-7.3.0 lib/alchemy/error_tracking/error_logger.rb
alchemy_cms-7.2.6 lib/alchemy/error_tracking/error_logger.rb
alchemy_cms-7.2.5 lib/alchemy/error_tracking/error_logger.rb
alchemy_cms-7.1.12 lib/alchemy/error_tracking/error_logger.rb
alchemy_cms-7.0.15 lib/alchemy/error_tracking/error_logger.rb
alchemy_cms-6.1.10 lib/alchemy/error_tracking/error_logger.rb
alchemy_cms-7.2.4 lib/alchemy/error_tracking/error_logger.rb
alchemy_cms-7.1.11 lib/alchemy/error_tracking/error_logger.rb
alchemy_cms-7.2.3 lib/alchemy/error_tracking/error_logger.rb
alchemy_cms-7.1.10 lib/alchemy/error_tracking/error_logger.rb
alchemy_cms-7.2.2 lib/alchemy/error_tracking/error_logger.rb
alchemy_cms-7.1.9 lib/alchemy/error_tracking/error_logger.rb
alchemy_cms-7.0.14 lib/alchemy/error_tracking/error_logger.rb
alchemy_cms-7.2.1 lib/alchemy/error_tracking/error_logger.rb
alchemy_cms-7.0.13 lib/alchemy/error_tracking/error_logger.rb