Permalink
Browse files

Why do we even need a constant here? A variable is fine.

  • Loading branch information...
1 parent b7bf3c1 commit 1729720871d73fa306faca7b05c5c05efa6eec49 @semaperepelitsa semaperepelitsa committed Jan 21, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 activesupport/lib/active_support/tagged_logging.rb
View
8 activesupport/lib/active_support/tagged_logging.rb
@@ -4,10 +4,10 @@
module ActiveSupport
# Wraps any standard Logger object to provide tagging capabilities. Examples:
#
- # LOGGER = ActiveSupport::TaggedLogging.new(Logger.new(STDOUT))
- # LOGGER.tagged("BCX") { LOGGER.info "Stuff" } # Logs "[BCX] Stuff"
- # LOGGER.tagged("BCX", "Jason") { LOGGER.info "Stuff" } # Logs "[BCX] [Jason] Stuff"
- # LOGGER.tagged("BCX") { LOGGER.tagged("Jason") { LOGGER.info "Stuff" } } # Logs "[BCX] [Jason] Stuff"
+ # logger = ActiveSupport::TaggedLogging.new(Logger.new(STDOUT))
+ # logger.tagged("BCX") { logger.info "Stuff" } # Logs "[BCX] Stuff"
+ # logger.tagged("BCX", "Jason") { logger.info "Stuff" } # Logs "[BCX] [Jason] Stuff"
+ # logger.tagged("BCX") { logger.tagged("Jason") { logger.info "Stuff" } } # Logs "[BCX] [Jason] Stuff"
#
# This is used by the default Rails.logger as configured by Railties to make it easy to stamp log lines
# with subdomains, request ids, and anything else to aid debugging of multi-user production applications.

0 comments on commit 1729720

Please sign in to comment.