Here's the answer: fooobar.com/questions/323877 / ...
It is important to use Hodel3000CompliantLogger instead of Rails.logger, otherwise oink will not be able to process the log files. It can also be configured not in config / environment / production.rb, but, for example, in config / initializers / oink.rb
YourApplication::Application.middleware.use( Oink::Middleware, :logger => Hodel3000CompliantLogger.new(STDOUT), :instruments => :memory)
This will write Oink to the default log file, which can later be captured
heroku logs -n500 --app app_name > logfile_for_oink
Either use another log management tool, such as PaperTrail, or set up syslog drainage (rsyslog on another * nix box).
Use oink with --threshold = 0 to show all entries
source share