FORUMS
Remove All Ads from XDA

[How to make a LOGCAT] [NOOB Friendly]

4,466 posts
Thanks Meter: 1,971
 
By doctor_droid, Senior Member on 22nd January 2013, 11:26 AM
Post Reply Email Thread
Many off us here are using custom roms and are spamming the developer thread by posting our issues without attaching a logcat
simply like
my bluetooth is not starting
my hdmi is not working
Etc bla bla...

by posting lamely, U r not helping the developer u r just spamming his thread
to really get help, make sure u have a logcat of your problem

What is logcat?

Logcat is the command to view the internal logs of the Android system. Viewing logs is often the best way to diagnose a problem, and is required for many issues. This way you'll find out what apps are doing in the background without you noticing.

Advantages of Logcat

Debugging
You can see what processes are running, if a process is running after a certain interval of time, it will eat battery. So you can also find out what is draining your battery.


What developers need is a logcat To know what is the issue
i will tell u how to make it on a phone itself


1) download an app called ALOGCAT

2) install app and open

3) u will find random text coming there (its not random literally )
leave it in background by pressing homekey


4) this step is specific
for eg. if are having trouble in switching on wifi , try to swtich it on or do fiddle wid anything u have .. just play around with your cell, run the app u think is buggy or whatever
once done


5) press home button for long, select alogcat app,

6) click on options hardware button (right one ) and click on save.

logcat will be saved to sdcard/alogcat folder in the form of txt files.

7) now either u can directly upload the logcat.txt while telling about your problem
or
u can copy the contents of that txt file and paste on www.pastebin.com
after pasting u will get a link something like pastebin.com/******
just copy link and paste along wid ur problem

8) now next time u have a problem make sure u attach a logcat along with it

this method is not useful if u r not able to boot the phone
for that u need to have a pc and android sdk installed along with the drivers
if u have everything installed then
Open the 'run' dialog by pressing the 'Windows' + 'r' buttons on your keyboard (minimize the browser & other non-windows programs)
cmd (this will open a DOS prompt)
cd c:\Android\tools (go to the directory where you extracted the SDK)
adb shell
Now you'll see just a '$'
logcat

You can now just press the power button on your phone to see what happens. It displays everything the device is doing.

This is my first post regarding logcat , so i m sorry for any discrepancy (if there, notify me plz)

P.S - logcat is also useful in case if u r having some trouble wid stock roms



thanks @El_Dark for extending the op.

When you guys are experimenting on a custom rom (i.e. nightlies, betas, RC's, "just cooked", etc.), it's very likely that your phone might not boot correctly, fear not and instead, try using ADB there are loads of guides regarding how to properly set-up your PC for using ADB, starting by the Android SDK's page itself :P lol

Now, to do the said logcat, open a command window and do:

C:\Users\Dark> cd \<Name of your Android SDK folder>\sdk\platform-tools [Hit ENTER!]

C:\<Android-SDK folder>\sdk\plarform-tools> adb.exe devices (just to make sure your computer detected your phone lol)

C:\<Android-SDK folder>\sdk\plarform-tools> adb.exe logcat -v long > somefile.txt (the "-v long" part creates a nicely formatted file )

That's it!! Remember to zip the file if it's too big

Another tip: Some phones are very catchy when under heavy issues (like mine ) in those cases, timing is essential between rebooting and getting your log, however!!! The adb logcat command makes sure to wait for the device to get detected
The Following 16 Users Say Thank You to doctor_droid For This Useful Post: [ View ] Gift doctor_droid Ad-Free
 
 
22nd January 2013, 01:11 PM |#2  
_Variable's Avatar
Senior Member
Flag Manila
Thanks Meter: 290
 
More
Re: [How to make a LOGCAT] [NOOB Friendly]
Thank you, Now problems will be solved easily.

__________________
Sweet Devil >_<
GT-P3100
Android 4.0.4 ICS
Sun Cellular
"LG should go bankrupt"
GApps+ | Not your typical Gapps.zip
The Following 2 Users Say Thank You to _Variable For This Useful Post: [ View ] Gift _Variable Ad-Free
24th January 2013, 01:41 PM |#3  
Junior Member
Thanks Meter: 2
 
Donate to Me
More
Re: [How to make a LOGCAT] [NOOB Friendly]
Very good to know. Thanks!

Sent from my SGH-i777
25th January 2013, 01:04 PM |#4  
Junior Member
Flag São Paulo
Thanks Meter: 0
 
More
Nice tks!
26th January 2013, 03:07 AM |#5  
slysir's Avatar
Member
Thanks Meter: 11
 
More
Re: [How to make a LOGCAT] [NOOB Friendly]
Thanks for the tips, I use app called CatLog. Works good.

Sent from my Nexus 10 using Tapatalk HD
The Following User Says Thank You to slysir For This Useful Post: [ View ] Gift slysir Ad-Free
26th January 2013, 02:23 PM |#6  
ajeteja's Avatar
Senior Member
Flag parchur
Thanks Meter: 31
 
More
Re: [How to make a LOGCAT] [NOOB Friendly]
Thank u very much for ur thread

Sent from my Micromax A50 using xda app-developers app
19th July 2013, 03:27 AM |#7  
mr.abdolian's Avatar
Senior Member
Flag Esfahan
Thanks Meter: 86
 
More
Thumbs up
Quote:
Originally Posted by doctor_droid

Many off us here are using custom roms and are spamming the developer thread by posting our issues without attaching a logcat
simply like
my bluetooth is not starting
my hdmi is not working
Etc bla bla...
..............................
...............................

Thanks. This is very useful...
1st August 2013, 10:28 AM |#8  
worf105's Avatar
Senior Member
Flag Kirkcaldy
Thanks Meter: 32
 
More
Thanks for the post.
6th August 2013, 04:56 AM |#9  
El_Dark's Avatar
Senior Member
Flag Santiago
Thanks Meter: 215
 
Donate to Me
More
A little .20 more to this When you guys are experimenting on a custom rom (i.e. nightlies, betas, RC's, "just cooked", etc.), it's very likely that your phone might not boot correctly, fear not and instead, try using ADB there are loads of guides regarding how to properly set-up your PC for using ADB, starting by the Android SDK's page itself :P lol

Now, to do the said logcat, open a command window and do:

C:\Users\Dark> cd \<Name of your Android SDK folder>\sdk\platform-tools [Hit ENTER!]

C:\<Android-SDK folder>\sdk\plarform-tools> adb.exe devices (just to make sure your computer detected your phone lol)

C:\<Android-SDK folder>\sdk\plarform-tools> adb.exe logcat -v long > somefile.txt (the "-v long" part creates a nicely formatted file )

That's it!! Remember to zip the file if it's too big

Another tip: Some phones are very catchy when under heavy issues (like mine ) in those cases, timing is essential between rebooting and getting your log, however!!! The adb logcat command makes sure to wait for the device to get detected

HTH!!
9th August 2013, 06:15 PM |#10  
doctor_droid's Avatar
OP Senior Member
Flag Indore
Thanks Meter: 1,971
 
More
Quote:
Originally Posted by El_Dark

A little .20 more to this When you guys are experimenting on a custom rom (i.e. nightlies, betas, RC's, "just cooked", etc.), it's very likely that your phone might not boot correctly, fear not and instead, try using ADB there are loads of guides regarding how to properly set-up your PC for using ADB, starting by the Android SDK's page itself :P lol

Now, to do the said logcat, open a command window and do:

C:\Users\Dark> cd \<Name of your Android SDK folder>\sdk\platform-tools [Hit ENTER!]

C:\<Android-SDK folder>\sdk\plarform-tools> adb.exe devices (just to make sure your computer detected your phone lol)

C:\<Android-SDK folder>\sdk\plarform-tools> adb.exe logcat -v long > somefile.txt (the "-v long" part creates a nicely formatted file )

That's it!! Remember to zip the file if it's too big

Another tip: Some phones are very catchy when under heavy issues (like mine ) in those cases, timing is essential between rebooting and getting your log, however!!! The adb logcat command makes sure to wait for the device to get detected

HTH!!

i will add this to op if u permit ..
11th August 2013, 08:37 PM |#11  
El_Dark's Avatar
Senior Member
Flag Santiago
Thanks Meter: 215
 
Donate to Me
More
Quote:
Originally Posted by doctor_droid

i will add this to op if u permit ..

Of course!! That's the idea
The Following User Says Thank You to El_Dark For This Useful Post: [ View ] Gift El_Dark Ad-Free
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes