method

open_log

rails latest stable - Class: ActiveSupport::BufferedLogger

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v3.2.13) is shown here.

open_log(log, mode)
public

No documentation available.

# File activesupport/lib/active_support/buffered_logger.rb, line 63
    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