class method self.new

Ruby on Rails 3.2.22.5

Since v2.2.3 Last seen in v4.0.13

Available in: v2.2.3 v2.3.18 v3.0.20 v3.1.12 v3.2.22.5 v4.0.13

Signature

self.new(log, level = DEBUG)

No documentation comment.

Parameters

log req
level opt = DEBUG
Source
# File activesupport/lib/active_support/buffered_logger.rb, line 47
    def initialize(log, level = DEBUG)
      @log_dest      = log

      unless log.respond_to?(:write)
        unless File.exist?(File.dirname(log))
          ActiveSupport::Deprecation.warn(<<-eowarn)
Automatic directory creation for '#{log}' is deprecated.  Please make sure the directory for your log file exists before creating the logger.
          eowarn
          FileUtils.mkdir_p(File.dirname(log))
        end
      end

      @log = open_logfile log
      self.level = level
    end

Defined in activesupport/lib/active_support/buffered_logger.rb line 47 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveSupport::BufferedLogger

Type at least 2 characters to search.

↑↓ navigate · open · esc close