logcat command of adb is used to get system log. It’s an equivalent to Ubuntu syslog, as far as I understand.
/data/log/prev_dump.log file. On the device (in my case. Samsung Duo, Android 7, rooted) here I saw the latest records of
logcat, however the buffer contained a little more.