configures proper logging and updates views and mongo to use it instead of regular print statements