We have an Amprobe DM2 (power quality analyzer) Recording amp meter that does this. A large to midsized electrical contractor in you area should have one of these and can set this up for recordings. It will record voltage, current, surges, lulls, outages, etc and a multitude of other readings. We usually put these on the incoming conductors in the main gear but they can be used for branch circuitry also.