I can't seem to find an answer or a question regarding this:
How do I store an Android Log entry to a string:
Log.i(TAG, "onCreate: start: ");
String s = /* get last Log entry */.toString();
The reason for this is so I can have the process ID and thread IDs. When I try to manual store the process and thread IDs, the thread IDs are different than printed in Logcat:
Log.i(TAG, "#checkWifiConnection: start");
String s = Integer.toString(android.os.Process.myPid()) + " " + Integer.toString(android.os.Process.getThreadPriority(android.os.Process.myTid())) + " " + TAG;
System.out.println(s + "#checkWifiConnection: start");
Logcat shows:
01-09 18:38:02.994 1558-2021 I/*~FETCH DATA: #checkWifiConnection: start
System.out shows:
I/System.out: 1558 10 *~FETCH DATA#checkWifiConnection: start