I have searched and found a lot of solutions on this subject, but all are saving the Verbose level. and not the debug or Error level ONLY
I would like to save only the debug level.
//currently the command i am using is this:
String[] cmd = new String[]{"logcat", "-f", filepath, "-v", "time"};
//i think it should be something like this
String[] cmd = new String[]{"logcat", "-f", filepath, "-v", "time", "-v" ,"tag: D/"};