Last Updated: February 25, 2016
·
678
· dinks

Rails 4 OpenShift Logger Production

The production.rb file should have this

config.logger = ActiveSupport::TaggedLogging.new(Logger.new(File.join(ENV['OPENSHIFT_RUBY_LOG_DIR'], "production-#{Time.now.strftime('%Y%m%d')}.log")))