UPDATE - THIS POST IS VALID ONLY FOR API < 16 (ANDORID 4.1 JELLY BEAN), OTHERWISE YOU NEED ROOT PERMISSION
Let'see how to catch LogCat from code.
It's very simple, just remember how to call it, and read his input stream.
LogCat process can be launched with parameters such as -help for help,
-s for silent filter,
-d for dump
-c for clear and,
-f for file export.
The (Nyan)LogCat