Oink not logging to STDOUT in Rails 4.1 app on Heroku

208 views Asked by At

Previous questions seemed to get Oink to successfully log to standard out in Heroku with this setup (which mirrors the setup in this article on arches.io):

Gemfile:

...
gem 'oink', '~> 0.10.1'
...

application.rb:

...
config.middleware.use Oink::Middleware, :logger => Hodel3000CompliantLogger.new(STDOUT)
...

Judging by the time of the previous questions they were probably using Rails 3. We are using Rails 4.1.4 and currently can't get it to log to standard out in Heroku. If using Rails 4 the developers from Heroku suggests using the rails_stdout_logging gem which ensures that your logs will be sent to standard out. We are currently using this gem so I'm wondering whether it is stopping Oink from logging to standard out with the above setup?

Locally Oink is logging just fine.

P.S. I tried setting LOG_LEVEL to info without success

0

There are 0 answers