Fixup log output to file

It was pretty awful before...