Improved logging - now generates individual log files for each upload attempt.