Sha256: f635237c3a4b8ce28350f2e799ca4bd4c97d342c7d51790351c15427908da722

Contents?: true

Size: 340 Bytes

Versions: 9

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

9 entries across 9 versions & 1 rubygems

Version Path
rails_semantic_logger-4.4.3 lib/rails_semantic_logger/extensions/active_model_serializers/logging.rb
rails_semantic_logger-4.4.2 lib/rails_semantic_logger/extensions/active_model_serializers/logging.rb
rails_semantic_logger-4.4.1 lib/rails_semantic_logger/extensions/active_model_serializers/logging.rb
rails_semantic_logger-4.4.0 lib/rails_semantic_logger/extensions/active_model_serializers/logging.rb
rails_semantic_logger-4.3.4 lib/rails_semantic_logger/extensions/active_model_serializers/logging.rb
rails_semantic_logger-4.3.3 lib/rails_semantic_logger/extensions/active_model_serializers/logging.rb
rails_semantic_logger-4.3.2 lib/rails_semantic_logger/extensions/active_model_serializers/logging.rb
rails_semantic_logger-4.3.1 lib/rails_semantic_logger/extensions/active_model_serializers/logging.rb
rails_semantic_logger-4.3.0 lib/rails_semantic_logger/extensions/active_model_serializers/logging.rb