Skip to content

Instantly share code, notes, and snippets.

@dinks
Created November 14, 2013 16:45
Show Gist options
  • Save dinks/7470089 to your computer and use it in GitHub Desktop.
Save dinks/7470089 to your computer and use it in GitHub Desktop.
OpenShift for Rails 4 Logging
# config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
config.logger = ActiveSupport::TaggedLogging.new(Logger.new(File.join(ENV['OPENSHIFT_RUBY_LOG_DIR'], "production-#{Time.now.strftime('%Y%m%d')}.log")))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment