Logging RazPi Temp

It would be great to have a way to log, over time, the reported temperature of the Raspberry Pi.
Some way to not only read it on demand (as described and the implemented in this thread “ Raspberry Pi Temperature CPU “), but to also programmatically poll and log it. Bonus points if additional thermal sensors can be added. (Farmduino, steppers, case, ambient temps)