I want to get the full system log. I am currently using the below code to get the syslog
try { final Process process = Runtime.getRuntime().exec("logcat -d -v threadtime *:I"); final BufferedReader bufferedReader = new BufferedReader(new InputStreamReader( process.getInputStream())); String line; while ((line = bufferedReader.readLine()) != null) { lineList.add(line); } } catch (final IOException e) { Log.e(e.toString()); }
I can get syslog successfully using the above code. He gives only the last 30 minutes of the magazine. But I want to get the full system log from my application launch. Is it possible to write a system log to our private file?
source share