rails/rails — pull request #5508 by FND (2012-03-19 09:50:37+00:00)
Title: Provide access to logger instance within TaggedLogging blocks

this improves encapsulation, simplifying occurrences like the following:

Rails.logger.tagged("DEBUG") { Rails.logger.debug(msg) }

... by removing the need to rely on (i.e. repeat) outer variables:

Rails.logger.tagged("DEBUG") { |logger| logger.debug(msg) }