Logging now compatible with Heroku, added formatting.