A Practical Guide to Watchdogs for Embedded Systems | Interrupt

Great to get some discussion - I should say that I read this because https://platformio.org/ featured it in their opening page.
I was thinking since the processor is going to be reset - to log the details to the uSD before reset…
Depending on the system, logging something after reset is also a good idea but possibly much more limited. Another way could be to have some private ram that isn’t initialized, and it that has a valid string (checksumed off course) then to log that on startup.
The question is what details are available. In the past with larger systrem have written some for of stack dump, but it can be a fair amount of work to decode the stack.
Another way might be to have each call to the watchdog given a unique number, and then log that number.