0

So the problem is, that I have made application which runs well for about one week and then starts to fail. Is it possible to somehow log the application while not connected to eclipse? And when it starts to fail, connect the device to eclipse and see the log?

kroky
  • 195
  • 2
  • 14

3 Answers3

2

if you want to save the log, Write it to the text file as Huxley told. Here is the link clearly telling you about how to save the log file. if you only want to see the log you can see that in Terminal with the help of shell command.

Move the directory path to Platform-tools as like this

system6@system6:~/android-sdks/platform-tools$ 

if you are using linux, Use ./adb logcat to view the logs. if windows adb logcat will help you.

Community
  • 1
  • 1
Rethinavel
  • 3,912
  • 7
  • 28
  • 49
1

You could use adb logcat for the issue. For example it would be like this in your shell after the application fails:

adb logcat -s "TAG"

or like this (if you want to save log somewhere)

adb logcat -s "TAG" >> Log.txt

Android developers has full help on it.

Yehor Nemov
  • 907
  • 2
  • 16
  • 31
0

You could replace the Logger with your own class that saves messages into a file on your SD card or the internal storage.

Huxley
  • 127
  • 4