vendor/bundle/ruby/2.6.0/gems/lumberjack-1.2.8/lib/lumberjack/logger.rb
def untagged(&block)
      Lumberjack.use_context(nil) do
        scope_tags = thread_local_value(:lumberjack_logger_tags)
        untagged = thread_local_value(:lumberjack_logger_untagged)
        begin
          set_thread_local_value(:lumberjack_logger_untagged, true)
          set_thread_local_value(:lumberjack_logger_tags, nil)
          tag({}, &block)
        ensure
          set_thread_local_value(:lumberjack_logger_untagged, untagged)
          set_thread_local_value(:lumberjack_logger_tags, scope_tags)
        end
      end
    end
# Remove all tags on the current logger and logging context within a block.
# You can still set new block scoped tags within theuntagged block and provide
# tags on individual log methods.
Remove all tags on the current logger and logging context within a block.
You can still set new block scoped tags within theuntagged block and provide
tags on individual log methods.
Remove all tags on the current logger and logging context within a block . You can still set new block scoped tags within theuntagged block and provide tags on individual log methods .
def untagged(&block)
      Lumberjack.use_context(nil) do
        scope_tags = thread_local_value(:lumberjack_logger_tags)
        untagged = thread_local_value(:lumberjack_logger_untagged)
        begin
          set_thread_local_value(:lumberjack_logger_untagged, true)
          set_thread_local_value(:lumberjack_logger_tags, nil)
          tag({}, &block)
        ensure
          set_thread_local_value(:lumberjack_logger_untagged, untagged)
          set_thread_local_value(:lumberjack_logger_tags, scope_tags)
        end
      end
    end
def untagged ( & block ) Lumberjack . use_context ( nil ) do scope_tags = thread_local_value ( :lumberjack_logger_tags ) untagged = thread_local_value ( :lumberjack_logger_untagged ) begin set_thread_local_value ( :lumberjack_logger_untagged , true ) set_thread_local_value ( :lumberjack_logger_tags , nil ) tag ( { } , & block ) ensure set_thread_local_value ( :lumberjack_logger_untagged , untagged ) set_thread_local_value ( :lumberjack_logger_tags , scope_tags ) end end end
Remove all tags on the current logger and logging context within a block.
Remove all tags on the current logger and logging context within a block .
block