instance method open_log

Ruby on Rails 3.1.12

Since v3.0.20 Last seen in v3.2.22.5

Available in: v3.0.20 v3.1.12 v3.2.22.5

Signature

open_log(log, mode)

No documentation comment.

Parameters

log req
mode req
Source
# File activesupport/lib/active_support/buffered_logger.rb, line 58
    def open_log(log, mode)
      open(log, mode).tap do |open_log|
        open_log.set_encoding(Encoding::BINARY) if open_log.respond_to?(:set_encoding)
        open_log.sync = true
      end
    end

Defined in activesupport/lib/active_support/buffered_logger.rb line 58 · 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