About 6 months ago my computer began restarting unexpectedly minutes after startup. I thought this was a power supply problem and switched in my friend's supply. The problem abated for a few weeks but gradually came back even more severely - the computer would restart several times after every startup. At this point I decided to give my friend's supply back and buy my own (he claimed his gave him similar problems). I purchased a decent-looking model for 60$ or so, but after a couple of weeks the problem began again - once after every startup the computer will randomly restart. Under my previous two power supplies this was accompanied by a system beep but not anymore. So, my question is in two parts:
First, what could be causing this problem? And second, is there some type of logger that I can use to monitor when the computer restarts - one that ideally would give me some information as to which component is to blame?