Sha256: 4fc7371f762abd431d0ab8a48f08aed6f2a220e22c2f27dbb0cc15ab7d890b25

Contents?: true

Size: 427 Bytes

Versions: 5

Compression:

Stored size: 427 Bytes

Contents

ActionCable::Connection::TaggedLoggerProxy

module ActionCable
  module Connection
    class TaggedLoggerProxy
      # As of Rails 5 Beta 3
      def tag_logger(*tags, &block)
        logger.tagged(*tags, &block)
      end

      # Rails 5 Beta 1,2. TODO: Remove once Rails 5 is GA
      def tag(logger, &block)
        current_tags = tags - logger.tags
        logger.tagged(*current_tags, &block)
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rails_semantic_logger-3.4.1 lib/rails_semantic_logger/extensions/action_cable/tagged_logger_proxy.rb
rails_semantic_logger-3.4.0 lib/rails_semantic_logger/extensions/action_cable/tagged_logger_proxy.rb
rails_semantic_logger-3.3.1 lib/rails_semantic_logger/extensions/action_cable/tagged_logger_proxy.rb
rails_semantic_logger-3.3.0 lib/rails_semantic_logger/extensions/action_cable/tagged_logger_proxy.rb
rails_semantic_logger-3.1.1 lib/rails_semantic_logger/extensions/action_cable/tagged_logger_proxy.rb