Add purge logging facility
Open the curl debug logfile in append mode, prevent logs to overwrite eachothers