Reputation: 6617
If you use Log.d("hussi","hussi"):
then we can see it in logcat .
but after the application is installed in the smartphone , can we see the logs somewhere in the phon , if yes , then where ?? also if there is any other way to write logs which we can trace in smartphones ?
Upvotes: 1
Views: 154
Reputation: 3579
You can use logcat for the same. Samsung ships with an application to take log dumps. You can access it using the keystring *#9900# . Take log dumps from there and save it to sdcard for using later. AFAIK this behavior is Manufacturer specific.
Upvotes: 1
Reputation: 1728
Using this should print the logcat output to a text file:
Runtime.getRuntime.exec("echo logcat >> /sdcard/log.txt");
Upvotes: 1
Reputation: 64419
From the manual (emph mine).
Debug logs are compiled in but stripped at runtime. Error, warning and info logs are always kept.
Upvotes: 2
Reputation: 8939
If you need the Log details as text or xml format and will be stored in SD card.
You should use
https://code.google.com/p/android-logging-log4j/
Log4j Implementation in Android give you desired result.
You can use Log.debug(),log.error(), log.info()
All kind of log you can store in text or xml file.
Hope this will help you.
Upvotes: 2