I want to get "last 25 logs of tag name CordovaLog" I tried
logcat -t 25 CordovaLog
I do get 25 logs but of all the tag names. Also what if there are no 25 Cordova Log ? Will it return whatever is available.
So what is the right command ? Thanks.
EDIT 1-
Process process = Runtime.getRuntime().exec("logcat -d -t 25 CordovaLog:V *:S");
BufferedReader bufferedReader = new BufferedReader( new InputStreamReader(process.getInputStream()));
StringBuilder log = new StringBuilder();
String line;
while ((line = bufferedReader.readLine()) != null)
{
log.append(line+"<br />");
}
return log.toString();
So Is this code getting all the logs are filting to get "Cordova logs" ? OR it's just getting "Cordova logs" ? It's crashing as I have lots of logs.