Refactored using log4r and rails_config
Refactored using log4r and rails_config