Upload log rotate function