Anything that will stress your CPU to the max constantly does the job. Prime95 is very good because if anything in your system is unstable, it will crash or fail, stop or bluescreen.
To record, use HWMonitor (by CPUID), CoreTemp (I use this as it displays the info on my GamePanel on the keyboard), RealTemp, or if your motherboard CD has it, use that. (For me I have ASUS AI Suite II to monitor and log temperatures on a graph).