Categories
android logcat shell stdout

How to redirect stdout to logcat from a shell script in a rooted device?

I’m running a shell script in a rooted Android device, and I’m trying to debug it by tracing the stdout output generated by the shell script(either by the commands or by echo). Is it possible to do this by redirecting stdout to logcat?