Hotfix/make console logging work

This fix should either be closed and not merged because of the other pull request, or, accepted before the logfile pull request.