read device log

Put your problem here if it does not fit any of the other categories.

read device log

Postby robybd » Wed Jun 09, 2010 9:13 am

Hello,

I'm using the API of Log (android.util.Log) and it helps when i do debug with the device but some bugs happen
when i use the device without running it in debug mode and i would like to know if i can get the device logs, for
example, like in MS or BB?
Thx.
robybd
Developer
Developer
 
Posts: 31
Joined: Mon Mar 01, 2010 9:10 am

Top

Re: read device log

Postby anarche » Wed Jun 09, 2010 10:06 am

If you run it in normal mode but usb'd to your computer you can still get the logs.
anarche
Master Developer
Master Developer
 
Posts: 369
Joined: Sun Apr 11, 2010 5:21 am

Re: read device log

Postby robybd » Wed Jun 09, 2010 10:12 am

Ok, that's sound fine but i would like to do it without eclipse running on the computer, is it possible?
if so, how?
Thx.
robybd
Developer
Developer
 
Posts: 31
Joined: Mon Mar 01, 2010 9:10 am

Re: read device log

Postby anarche » Thu Jun 10, 2010 12:13 am

go to command and enter: adb logcat
read http://developer.android.com/guide/deve ... s/adb.html for how to output to a file

Why does it matter whether or not it is running in eclipse or not?
anarche
Master Developer
Master Developer
 
Posts: 369
Joined: Sun Apr 11, 2010 5:21 am

Re: read device log

Postby robybd » Thu Jun 10, 2010 7:04 am

The reason i need it without running eclipse is since i would like, for example, to give it to the QA team for some testing and in case there's a bug they can give me the exact device state.
robybd
Developer
Developer
 
Posts: 31
Joined: Mon Mar 01, 2010 9:10 am

Re: read device log

Postby anarche » Thu Jun 10, 2010 7:32 am

anarche
Master Developer
Master Developer
 
Posts: 369
Joined: Sun Apr 11, 2010 5:21 am

Top

Re: read device log

Postby robybd » Thu Jun 10, 2010 7:39 am

i'll check it as well, thanks
robybd
Developer
Developer
 
Posts: 31
Joined: Mon Mar 01, 2010 9:10 am

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 13 guests