Sometimes when my headless Pi Zero W hangs or goes offline without coming back, I hard reset it by disconnecting the power cable and reconnecting it.
I'm trying to look for clues in /var/log/syslog to find out what it was doing when I pulled the plug, but I don't know what markers I should look for to find the point where the power plug was pulled and then reconnected.
Is there a way that I can have a marker (eg. a row of asterixes) logged at the earliest point after cable is connected? Is there something already in a logfile that might indicate this?
Pi Zero W, Raspian Stretch 4.14.98+
kernel: [ 0.000000] Booting Linux on physical CPU 0x0