title: Read logcat programmatically for an application
body: <p>I've read <a href="https://stackoverflow.com/questions/12692103/read-logcat-programmatically-within-application">this article</a> already. But it seems most of the text it shows are not in my application. How can I filter the message and let it only shows the log for my application. In another word, I want to show it like the one in Android Studio (only showing the error log from my app, showing time stamp,etc):</p>
  
  <p>I tried something like "logcat -d -v time", but doesn't work. Any idea? Thanks.</p>
  
  <p><img src="https://i.stack.imgur.com/cXkvz.jpg" alt="enter image description here"></p>