Enable USB debugging in device. #
Connect the device to a usb port.
Open command prompt. #
To get logcat use following commands:
adb shell reboot adb logcat > filename.txt //stores in filename.txt in host pc
To get kernel message (kmsg) #
adb shell cd cat /proc/kmsg > filename.txt //stores kmsg in filename.txt in device. exit adb pull /data/filename.txt //pulls filename.txt from device to host pc.