Problem with turning off the phone | stable version Samsung S7

There is a support page: Capture a debug information from /e/OS.

logcat is a command out of adb. It is worth doing a few practice runs, the files can be enormous – in common with other adb commands it only works with a device connected,

 adb logcat --help

is quite informative.