Rename file using xargs -a file

I found my answer at this link:

http://www.commandlinefu.com/commands/view/8368/bulk-rename-files-with-sed-one-liner

It isn't exactly what I wanted to do, but it works:

ls *.log | sed -e 'p;s/.log/.txt/' | xargs -n2 mv