heroku/rails_stdout_logging — pull request #2 by amcoder (2013-07-08 05:57:01+00:00)
Title: Set up logging earlier in the boot process

This fixes an issue where the ActionPack loggers do not write to STDOUT.

To reproduce:
```ruby
class TestController < ApplicationController
def index
Rails.logger.info "Logging with Rails.logger" # Printed to STDOUT
logger.info "Logging with logger" # Not printed to STDOUT
end
end
```

The ActionPack classes are set up by Railties initializers, including
setting the logger to Rails.logger. We need to set up the STDOUT logging
before the Railties initializers run, otherwise the loggers will be set
to the default Rails logger.