Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8717925
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T06:24:33+00:00 2026-06-13T06:24:33+00:00

In my Rails project, I noticed that sometimes actions are not written into the

  • 0

In my Rails project, I noticed that sometimes actions are not written into the log file development.log immediately after they are done, but rather after some other actions are done (or maybe just after some amount of time, I’m not sure.) Exactly when is the development.log file written?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T06:24:35+00:00Added an answer on June 13, 2026 at 6:24 am

    Updated for Rails 3.2

    The default logging for Rails is buffered, so log message are not written immediately, but happen in batches. You can force the logger to flush the buffer with:

    That was the old way, as of 3.2 the filesystem handles buffering before writing the log:

    ActiveSupport::BufferedLogger#auto_flushing is deprecated. Either set
    the sync level on the underlying file handle like this. Or tune your
    filesystem. The FS cache is now what controls flushing.

    You can change your config/environments/development.rb to auto flush with every log message:

    config.autoflush_log = true
    

    This is used by bootstrap.rb to force the sync of the log (e.g. f.sync = true). This will noticeable impact performance.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've noticed that when generating a new rails project, the Gemfile now defaults to:
My rails project is paginating the HTML format but not the the others. Can
in a rails project i have to deal with lots of strings, that are
I running a rails project and I am displaying a textfield that can often
In my rails project I have a presenter method that has a helper view
I have a rails project that I would like to set up email notifications
I've seen reports that Facebooker doesn't work with Rails 3. I've noticed that there's
new rails user here. I have a rails project that I want to accept
I'm using gem 'twitter-bootstrap-rails, '2.1.4' for a project. Rails 3.2.6 I first noticed a
In a rails project I have two entities, Users and Institutions, they have a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.