Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,782,599 Members 36,173 Now Online
XDA Developers Android and Mobile Development Forum

Logcat File?

Tip us?
 
NvrSlowsDown
Old
#1  
Junior Member - OP
Thanks Meter 0
Posts: 6
Join Date: Mar 2009
Default Logcat File?

I have been searching around but haven't found the answer. I have got logcat working but I haven't figured out how to make a logcat file to look through on my computer. I found a post that said to type: adb shell logcat > /logcat but the screen just sits there without anything ever happening.

I think it would also be helful for someone to write up a good tutorial on how they use logcat to figure out problems with there phone so people can do more than just come into the rom forums and say they are getting a force close on this app or there is a lot of lag. Those don't help much in figuring out if it is a problem with the rom, the app, or some old apps hanging around causing trouble and time for a wipe.
Phone: Nexus One
ROM: CM 5.0.6
 
lukekirstein
Old
#2  
lukekirstein's Avatar
Senior Member
Thanks Meter 2
Posts: 386
Join Date: Apr 2009
Location: Chandler, Arizona
Have you actually confirmed that ADB is working? Try just typing "adb logcat" and you should get a scrolling log that updates as the phone works on Command Prompt.
The man who smiles when things go wrong has thought of someone to blame it on. - Robert Bloch
 
NvrSlowsDown
Old
#3  
Junior Member - OP
Thanks Meter 0
Posts: 6
Join Date: Mar 2009
Yes that is what I am getting now but I want to output that to a file.
Phone: Nexus One
ROM: CM 5.0.6
 
NvrSlowsDown
Old
#4  
Junior Member - OP
Thanks Meter 0
Posts: 6
Join Date: Mar 2009
Someone should be able to answer this question for me.

What am I doing wrong?
Phone: Nexus One
ROM: CM 5.0.6
 
lukekirstein
Old
#5  
lukekirstein's Avatar
Senior Member
Thanks Meter 2
Posts: 386
Join Date: Apr 2009
Location: Chandler, Arizona
Nothing. That works fine. You can then go to command prompt menu (right click the title bar I believe) and select "mark". That'll let you select text, then you can use that same menu to copy and paste.
The man who smiles when things go wrong has thought of someone to blame it on. - Robert Bloch
 
NvrSlowsDown
Old
#6  
Junior Member - OP
Thanks Meter 0
Posts: 6
Join Date: Mar 2009
I answered my own question.
You type:
adb logcat > logcat.txt
Then the command prompt screen doesn't appear to be doing anything but it is writing everything to the logcat.txt file which is in the SDK tools folder that you are running the logcat file from.

Now my question is, is it normal to get this Low memory warning. I wouldn't think it would be but I don't know for sure. I do see some background applications that I can get rid of permanantly but is there anything else I can do or I can look for to prevent this. Also to exit the logcat I have just been unplugging the usb cord from the phone, is there some other way to end the command?

D/dalvikvm( 3678): GC freed 4441 objects / 377680 bytes in 303ms

D/dalvikvm( 3685): GC freed 3698 objects / 264640 bytes in 312ms

I/ActivityManager( 132): Process com.android.browser (pid 3614) has died.

I/ActivityManager( 132): Low Memory: No more background processes.

I/WindowManager( 132): WIN DEATH: Window{43995d08 com.android.browser/com.android.browser.BrowserActivity paused=false}

D/dalvikvm( 245): GC freed 7 objects / 248 bytes in 450ms

D/dalvikvm( 569): GC freed 7 objects / 240 bytes in 429ms

D/dalvikvm( 189): GC freed 81 objects / 4624 bytes in 460ms

D/dalvikvm( 132): GC freed 3069 objects / 131080 bytes in 674ms

D/dalvikvm( 3639): GC freed 7 objects / 256 bytes in 968ms

D/dalvikvm( 3632): GC freed 7 objects / 256 bytes in 981ms

D/dalvikvm( 3646): GC freed 7 objects / 248 bytes in 978ms

D/dalvikvm( 443): GC freed 7 objects / 248 bytes in 1018ms

D/dalvikvm( 3192): GC freed 7 objects / 240 bytes in 1053ms

D/dalvikvm( 510): GC freed 48 objects / 1720 bytes in 1014ms

D/dalvikvm( 359): GC freed 7 objects / 240 bytes in 1101ms

D/dalvikvm( 3701): GC freed 1207 objects / 95176 bytes in 858ms

D/TrackingPatternView( 132): width=480 textureWidth=120

D/dalvikvm( 3678): GC freed 1354 objects / 99528 bytes in 516ms

D/dalvikvm( 3685): GC freed 887 objects / 53240 bytes in 462ms

D/TrackingPatternView( 132): width=480 textureWidth=120

D/HomeLoaders( 3685): load applications

D/HomeLoaders( 3685): loading user items

D/HomeLoaders( 3685): --> starting workspace loader

D/gmail-ls( 3678): Purging old attachments
Phone: Nexus One
ROM: CM 5.0.6
 
moeahmad1995
Old
#7  
moeahmad1995's Avatar
Senior Member
Thanks Meter 157
Posts: 848
Join Date: May 2011
Location: Chicago
Press control c to stop it without unplugging
 
frankdrey
Old
#8  
Senior Member
Thanks Meter 176
Posts: 833
Join Date: Dec 2011
Ey this is 3 years old :P
I don't think he'll check for an answer anymore
Back to this nick.

Tags
adb, logcat
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Moto G 4G Receives Official CyanogenMod 11 Love

When theMoto Gwas initially released to the world in November of last year,very few actually … more

Get Your Tasks Organized on Android Wear with Agenda Wear

Having a checklist of things you need to do is something we all can find useful at … more

Top 5 LG G3 MODs – XDA Developer TV

The LG G3 has been LG’s breakout hit of the summer. Using their knowledge frombuilding some … more

Make Your Calendar Widget Beautiful with Month

For some of us, summer vacation is alreadyover. For those getting ready to school, work, or … more