Skip to content

Instantly share code, notes, and snippets.

@tulios
Created November 17, 2010 09:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tulios/703197 to your computer and use it in GitHub Desktop.
Save tulios/703197 to your computer and use it in GitHub Desktop.
rails_logger_config
if RUBY_PLATFORM =~ /java/ and ENV['RAILS_ENV'] == 'production'
require 'java'
config.log_path = java.lang.System.getProperty('catalina.home') + '/logs/migrador_inep.log'
config.logger = Logger.new(config.log_path)
config.logger.level = Logger::INFO
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment