instance method
tag
Ruby on Rails 8.1.2
Since v5.2.8.1Signature
tag(logger, &block)
No documentation comment.
Parameters
-
loggerreq -
blockblock
Source
# File actioncable/lib/action_cable/connection/tagged_logger_proxy.rb, line 26
def tag(logger, &block)
if logger.respond_to?(:tagged)
current_tags = tags - logger.formatter.current_tags
logger.tagged(*current_tags, &block)
else
yield
end
end
Defined in actioncable/lib/action_cable/connection/tagged_logger_proxy.rb line 26
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionCable::Connection::TaggedLoggerProxy