instance method default_log_file

Ruby on Rails 7.1.6

Since v6.0.6

Available in: v6.0.6 v6.1.7.10 v7.0.10 v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

default_log_file()

No documentation comment.

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

Defined in railties/lib/rails/application/configuration.rb line 563 · View on GitHub · Improve this page · Find usages on GitHub

Defined in Rails::Application::Configuration

Type at least 2 characters to search.

↑↓ navigate · open · esc close