Logger-file location (Newbe question)

Started by gucky, January 25, 2011, 11:44:00 AM

Previous topic - Next topic

gucky

Hello everyone,

since I'm starting to get a bit used to Android I wanted to write a little 3D application. For debugging reasons I need to get some messages which I tried to log.  (like this one: Logger.log("Translation: "+f.getTranslation());)

My problem is, I don't know where the logfile is saved. I looked everywhere in my project (since it is not big I finished quickly) and after that looked in the documentation for a possibility to set my own path. Can you tell me where that log-file is located?

Thanks,
gucky

Thomas.

DDMS in eclipse is better and you can watch what does your app in realtime

gucky

Thanks for the answer but DDMS isn't working right. (It starts with an exception and won't show any data while the emulator is running) I believe you, that DDMS is more useful and I will try to get it running, but right now I could fix my problem just with the logfile.

Doesn't anybody know where it is?

EgonOlsen

You might as well try to run ddms outside of Eclipse. There's a ddms.bat in the SDK's tools directory to start it.

raft

this prints out the log to the console


<android home>/platform-tools/adb logcat

gucky

Thanks to all of you. I where now able to do both.

icarusfactor

  Also, if you need to copy the debug file to a local filesystem
I use this command below so I can open it into an editor
and do searches etc..

Save log to file:
adb logcat > logfile.txt

Then open it in an editor:
gvim logfile.txt