class method
self.new
Ruby on Rails 4.1.16
Since v3.2.22.5Signature
self.new(logger)
No documentation comment.
Parameters
-
loggerreq
Source
# File activesupport/lib/active_support/tagged_logging.rb, line 58
def self.new(logger)
# Ensure we set a default formatter so we aren't extending nil!
logger.formatter ||= ActiveSupport::Logger::SimpleFormatter.new
logger.formatter.extend Formatter
logger.extend(self)
end
Defined in activesupport/lib/active_support/tagged_logging.rb line 58
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::TaggedLogging