Changing file open to append, not overwrite when logging