instance method
tagged
Ruby on Rails 8.0.4
Since v3.2.22.5Signature
tagged(*tags)
No documentation comment.
Parameters
-
tagsrest
Source
# File activesupport/lib/active_support/tagged_logging.rb, line 141
def tagged(*tags)
if block_given?
formatter.tagged(*tags) { yield self }
else
logger = ActiveSupport::TaggedLogging.new(self)
logger.formatter.extend LocalTagStorage
logger.push_tags(*formatter.current_tags, *tags)
logger
end
end
Defined in activesupport/lib/active_support/tagged_logging.rb line 141
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::TaggedLogging