I am having a memory leak and am trying to track it down, therefore im trying to use oink on Heroku servers. Since Heroku does not provide log archives, im exporting them to Amazon S3 through the Papertrail add-on.
I have been able to succesfully do so, however, in order to use oink, my log files must be in a special format called "Hodel 3000 compliant logger". I have managed to do so in development, however I do not know how to create such log files in production (*heroku). Any help would be appreciated.
Thanks in advance,
Juan Lagrange
The hodel_3000_compliant_logger gem should do the job here; it's designed just for that purpose.
gem 'hodel_3000_compliant_logger'
to yourGemfile
, thenbundle install
config.logger = Hodel3000CompliantLogger.new(config.paths['log'].first)
to yourapplication.rb
(if you want to replace your default logger with the Hodel3000 one).