OK, here are the results of a quick Google search:
What I got from those links are:
- The last part of your command should actually be
cat /proc/kmsg
logcat -v time -f /dev/kmsg
writes logcat outputs to kernel message buffer
So,
logcat -v time -f /dev/kmsg | cat /proc/kmsg
will output both logcat and kernel logs to stdout
(whatever it is). Probably, you may write the output to a file as follows:
logcat -v time -f /dev/kmsg | cat /proc/kmsg > /sdcard/log.txt
The above worked from adb shell
prompt on a rooted Android 4.4.2 device.
Hope this helps.