vendor/bundle/ruby/2.6.0/gems/lumberjack-1.2.8/lib/lumberjack/tagged_logger_support.rb
def tagged(*tags, &block)
      tag_hash = {}
      tags.flatten.each do |tag|
        tagged_values = Array(tag_hash["tagged"] || self.tags["tagged"])
        tag_hash["tagged"] = tagged_values + [tag]
      end
      tag(tag_hash, &block)
    end
# Compatibility with ActiveSupport::TaggedLogging which only supports adding tags as strings.
# If a tag looks like "key:value"  or "key=value", it will be added as a key value pair.
# Otherwise it will be appended to a list named "tagged".
Compatibility with ActiveSupport::TaggedLogging which only supports adding tags as strings.
If a tag looks like "key:value"  or "key=value", it will be added as a key value pair.
Otherwise it will be appended to a list named "tagged".
Compatibility with ActiveSupport :: TaggedLogging which only supports adding tags as strings . If a tag looks like " key : value " or " key = value " it will be added as a key value pair . Otherwise it will be appended to a list named " tagged " .
def tagged(*tags, &block)
      tag_hash = {}
      tags.flatten.each do |tag|
        tagged_values = Array(tag_hash["tagged"] || self.tags["tagged"])
        tag_hash["tagged"] = tagged_values + [tag]
      end
      tag(tag_hash, &block)
    end
def tagged ( * tags , & block ) tag_hash = { } tags . flatten . each do | tag | tagged_values = Array ( tag_hash [ "tagged" ] || self . tags [ "tagged" ] ) tag_hash [ "tagged" ] = tagged_values + [ tag ] end tag ( tag_hash , & block ) end
Compatibility with ActiveSupport::TaggedLogging which only supports adding tags as strings.
Compatibility with ActiveSupport :: TaggedLogging which only supports adding tags as strings .
tags
block