Flowdock
method

default_log_file

Importance_0
v6.0.0 - Show latest stable - 0 notes - Class: Rails::Application::Configuration
default_log_file() public

No documentation

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

Hide source
# File railties/lib/rails/application/configuration.rb, line 316
      def default_log_file
        path = paths["log"].first
        unless File.exist? File.dirname path
          FileUtils.mkdir_p File.dirname path
        end

        f = File.open path, "a"
        f.binmode
        f.sync = autoflush_log # if true make sure every write flushes
        f
      end
Register or log in to add new notes.