Refactor for Rails 3 log format.