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