instance method tail_log

Ruby on Rails 2.3.18

Since v2.3.18 Last seen in v2.3.18

Signature

tail_log()

No documentation comment.

Source
# File railties/lib/rails/rack/log_tailer.rb, line 22
      def tail_log
        @file.seek @cursor

        mod = @file.mtime.to_f
        if mod > @last_checked
          contents = @file.read
          @last_checked = mod
          @cursor += contents.size
          $stdout.print contents
        end
      end

Defined in railties/lib/rails/rack/log_tailer.rb line 22 · View on GitHub · Improve this page · Find usages on GitHub

Defined in Rails::Rack::LogTailer

Type at least 2 characters to search.

↑↓ navigate · open · esc close