pdroid-manager icon indicating copy to clipboard operation
pdroid-manager copied to clipboard

Option to see core logging

Open M66B opened this issue 12 years ago • 3 comments

Option to see the core PDroid logging to pinpoint problems like the Go SMS problem. A logcat contains mostly too much noise (not PDroid logging) to easily identify problems.

M66B avatar Dec 11 '12 06:12 M66B

I can understand why you would want a feature like this, but to be honest I don't think I'll include it for a couple of reasons. First, there are good on-device logging apps like CatLog Log Reader and aLogCat, which provide filtering by app name and those sorts of things. The second reason is that viewing the logs of other apps now requires root access, so it would mean PDroid Manager requesting root privileges.

An alternative, which would require changes to the core, would be for PDroid core record its own logs internally, and then PDroid Manager could read the logs from the PDroid core.

Feel free to respond if you disagree, or want to raise other points.

wsot avatar Dec 11 '12 07:12 wsot

Maybe it would help if PDroid Core, etc would write it's logs to a different 'buffer'.

Changing stuff like System.err.println(....); to something like Log.d("PDroid", ...); would allow it to use adb logcat -b PDroid to get the correct logs.

tamcore avatar Dec 12 '12 10:12 tamcore

TamCore: That would certainly be better. I'm actually going to do a bit of code clean-up on the core sometime soon so I'll probably try to do something about the logging then. Right now, there is just not enough useful detail to diagnose problems, and some annoying bugs (e.g. sending an intent directly to a class causes a null pointer exception stack trace).

wsot avatar Dec 13 '12 21:12 wsot