In the Android shell script use the following:
log -pv -t "test" "test script message"
Then you will see a message in Androids Logcat:
adb logcat | grep test
Using:
log [-p priorityChar] [-t tag] message priorityChar should be one of: v,d,i,w,e
This works for me on Droid 4.4.3
source share