method
tagged
v7.0.0 -
Show latest stable
- Class:
ActiveSupport::TaggedLogging
tagged(*tags)public
No documentation available.
# File activesupport/lib/active_support/tagged_logging.rb, line 97
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