method

default_log_file

Importance_0
Ruby on Rails latest stable (v7.1.3.2) - 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 563
      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.