method

new

Importance_0
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: TaggedLogging
new(logger) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activesupport/lib/active_support/tagged_logging.rb, line 117
    def self.new(logger)
      logger = logger.clone

      if logger.formatter
        logger.formatter = logger.formatter.clone
      else
        # Ensure we set a default formatter so we aren't extending nil!
        logger.formatter = ActiveSupport::Logger::SimpleFormatter.new
      end

      logger.formatter.extend Formatter
      logger.extend(self)
    end
Register or log in to add new notes.