Hotfix/make logfile logging work

This is the full, complete, logging fix.