Sha256: 90df9bb36b4176345490d511f02910b85a5532c68643a9f6266e7b31e41f1a0c

Contents?: true

Size: 340 Bytes

Versions: 17

Compression:

Stored size: 340 Bytes

Contents

# Patch ActiveModelSerializers logger
require "active_model_serializers/logging"

module ActiveModelSerializers
  module Logging
    include SemanticLogger::Loggable

    private

    def tag_logger(*tags, &block)
      logger.tagged(*tags, &block)
    end
  end

  class SerializableResource
    include SemanticLogger::Loggable
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
rails_semantic_logger-4.17.0 lib/rails_semantic_logger/extensions/active_model_serializers/logging.rb
rails_semantic_logger-4.16.0 lib/rails_semantic_logger/extensions/active_model_serializers/logging.rb
rails_semantic_logger-4.15.0 lib/rails_semantic_logger/extensions/active_model_serializers/logging.rb
rails_semantic_logger-4.14.0 lib/rails_semantic_logger/extensions/active_model_serializers/logging.rb
rails_semantic_logger-4.13.0 lib/rails_semantic_logger/extensions/active_model_serializers/logging.rb
rails_semantic_logger-4.12.0 lib/rails_semantic_logger/extensions/active_model_serializers/logging.rb
rails_semantic_logger-4.11.0 lib/rails_semantic_logger/extensions/active_model_serializers/logging.rb
rails_semantic_logger-4.10.0 lib/rails_semantic_logger/extensions/active_model_serializers/logging.rb
rails_semantic_logger-4.9.0 lib/rails_semantic_logger/extensions/active_model_serializers/logging.rb
rails_semantic_logger-4.6.2 lib/rails_semantic_logger/extensions/active_model_serializers/logging.rb
rails_semantic_logger-4.6.1 lib/rails_semantic_logger/extensions/active_model_serializers/logging.rb
rails_semantic_logger-4.6.0 lib/rails_semantic_logger/extensions/active_model_serializers/logging.rb
rails_semantic_logger-4.5.1 lib/rails_semantic_logger/extensions/active_model_serializers/logging.rb
rails_semantic_logger-4.5.0 lib/rails_semantic_logger/extensions/active_model_serializers/logging.rb
rails_semantic_logger-4.4.6 lib/rails_semantic_logger/extensions/active_model_serializers/logging.rb
rails_semantic_logger-4.4.5 lib/rails_semantic_logger/extensions/active_model_serializers/logging.rb
rails_semantic_logger-4.4.4 lib/rails_semantic_logger/extensions/active_model_serializers/logging.rb