Improving logging settings for heroku

Needed to refactor the configuration settings to make logging work with heroku