log show --predicate 'eventMessage contains "Previous shutdown cause"' --last 24h
1 Power adapter disconnected
3 Dirty Shutdown/Sleep resulting from forced restart or shutdown
5 Clean Shutdown/Sleep initiated by the user
6 Undocumented, system initiated
9 Undocumented, system initiated
0 Sudden loss of power or SafeSleep initiated by system
-3 Multiple temperature sensors too high
-60 Bad master directory block, serious disk error
-61 Unresponsive app resulting in forced shutdown
-62 Unresponsive app resulting in forced shutdown
-64 Kernel panic, probably due to Firmware issue
-71 Memory too hot
-74 Battery too hot
-75 MagSafe power adaptor communication problem
-78 Incorrect input current from power adapter
-79 Incorrect current from battery
-86 Proximity temperature (heatsink, etc) too high
-95 Proximity temperature (heatsink, etc) too high
-100 Power supply too hot
-101 Display too hot
-103 Battery voltage too low
-104 Unknown battery fault
-127 SMC/PMU forced shutdown for another cause
-128 Unknown, possibly battery at the end of its life, but can also occur when the SMC initiates an automatic restart following a kernel panic; or last reason was not logged
ref: https://discussions.apple.com/thread/251506850?answerId=253053640022#253053640022