instance method
open_log
Ruby on Rails 3.1.12
Since v3.0.20 Last seen in v3.2.22.5Signature
open_log(log, mode)
No documentation comment.
Parameters
-
logreq -
modereq
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