Changes to logging to a file