Sha256: e9f05c17ae6de87a5ffc5ef661ea1b915bc95793e3a76f026e6175880d9c0d46

Contents?: true

Size: 333 Bytes

Versions: 13

Compression:

Stored size: 333 Bytes

Contents

# Patch ActiveModelSerializers logger
require 'active_model_serializers/logging'

module ActiveModelSerializers::Logging
  include SemanticLogger::Loggable

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

class ActiveModelSerializers::SerializableResource
  include SemanticLogger::Loggable
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
rails_semantic_logger-4.2.1 lib/rails_semantic_logger/extensions/active_model_serializers/logging.rb
rails_semantic_logger-4.2.0 lib/rails_semantic_logger/extensions/active_model_serializers/logging.rb
rails_semantic_logger-4.1.3 lib/rails_semantic_logger/extensions/active_model_serializers/logging.rb
rails_semantic_logger-4.1.2 lib/rails_semantic_logger/extensions/active_model_serializers/logging.rb
rails_semantic_logger-4.1.1 lib/rails_semantic_logger/extensions/active_model_serializers/logging.rb
rails_semantic_logger-4.1.0 lib/rails_semantic_logger/extensions/active_model_serializers/logging.rb
rails_semantic_logger-4.0.1 lib/rails_semantic_logger/extensions/active_model_serializers/logging.rb
rails_semantic_logger-4.0.0 lib/rails_semantic_logger/extensions/active_model_serializers/logging.rb
rails_semantic_logger-4.0.0.rc1 lib/rails_semantic_logger/extensions/active_model_serializers/logging.rb
rails_semantic_logger-4.0.0.beta2 lib/rails_semantic_logger/extensions/active_model_serializers/logging.rb
rails_semantic_logger-4.0.0.beta1 lib/rails_semantic_logger/extensions/active_model_serializers/logging.rb
rails_semantic_logger-3.4.1 lib/rails_semantic_logger/extensions/active_model_serializers/logging.rb
rails_semantic_logger-3.4.0 lib/rails_semantic_logger/extensions/active_model_serializers/logging.rb