[Galaxy Y GT-S5360 General] Deadly:
Simple methods to get LOGCAT, DMESG

Devs asking you to get a logcat and give?? Yes it helps a lot for devs if you give logcat to solve problem. So dont wait till devs ask you to get a logcat! Just give them a logcat when you tell them this/that doesnt work. This way theirs and yours time will be saved and unnecessary posts will be avoided. Now i will give you simple steps to do it. There are two main ways to do a logcat, 1. within android device, and 2. through adb using PC.​

WITHIN ANDROID DEVICE METHOD:

This i learnt from paxChristos from his thread.

1. Logcat within android device can be done in one of two ways, through a Logcat app: Difficulty --> *

Here are two good apps: aLogcat or Catlog

Both of these programs can dump their logs to a text file, which is very useful for debugging. Or, you can do it in terminal emulator (same rules as running through adb(see below))

2. Through Terminal method: Difficulty --> **

Install Android Terminal Emulator app from Play Store..

Open terminal app you just installed..

Enter these commands:

After every command press ENTER/SUBMIT button

su

then accept the superuser popup message[it comes only first time if you select checkbox "remember the choice"]

logcat -v long > /sdcard/test.log

Or use this command:

The -v long puts the text in a nice format that is more easily readable. The *:W will search for all warnings, errors, and fatals, while the *:S will silence everything else.

So essentially, u will have a .txt file that has a log of all warnings and up, nothing else, and it'll look pretty too!

logcat -v long *:W*:S > /sdcard/filename.txt

now press home button to minimize the terminal..

and do the task which is giving problems/ whichever task log you need to give to dev..

then drag the notification bar..

select terminal app in it..

now press and hold "Volume down button" and touch c button on keyboard.

This will stop the command..

now use this command twice

exit

Now app will get closed. go to sdcard to find test.log file.. upload it to here so that dev can access it..

Thank you for reading it with patience :) hope you can get logcat now..

Note: if you are stuck in boot and want to take logcat.. READ LOGCAT FROM ADB METHOD BELOW.. the above one is simple method for these tasks for eg.. if you are having some force close of app/lag etc.. then after entering second command press enter and then use home button to minimize terminal.. dont worry it will take log.. now open that app and once it gives force close then click on it and then open terminal again and press volume down button + c to terminate command.. then use exit command two times... done.. now go to sdcard and find a.txt file

From PC[i.e, ADB] LOGCAT METHOD :Difficulty --> ***

There is an advantage here. As doing this way, you can start using logcat when your device boots. There are 2 ways here again..

PREPARATION:

In your android device, go to settings --> applications --> development -->

Check USB Debugging

Make sure your device driver is already installed otherwise install kies software which will install drivers too.. Get kies from This LINK

You need to download this ADB.zip file i made to your system.. Download link

Extract the ADB.zip file from any applications like IZarc/7Zip/winzip/winrar.

ADB USAGE INSTRUCTIONS:

Then go to Android folder.. inside that you should find 3 files.. Now open a command prompt or terminal in that path..(wherever you extracted it.. use cd command)

Then inside that path.. type

adb logcat > filename.txt

Or

logcat -v long > /sdcard/test.log

Or

logcat -v long *:W*:S > /sdcard/filename.txt

Now perform tasks in android device of which you need to give logcat for the devs. Then use CTRL+C to end the command.

Now find the filename.txt inside the Android folder which has logcat. Upload this file and give link to dev..

Or There is another method called All in one logger tool by wcypierre which can get you logcat and dmesg. I have not tested it myself. But i am sure it will work and you can go to that thread and ask your queries about that tool if you want to use that. The dev will help you gladly. So, please thank him for his nice work.​

The full list of options that can be used with logcat command is as follows:

V — Verbose (lowest priority)

D — Debug

I — Info (default priority)

W — Warning

E — Error

F — Fatal

S — Silent (highest priority, on which nothing is ever printed)

You can replace the *:W with any other letter from above to get more info.

From PC[i.e, ADB] GET DMESG:Difficulty --> ***

Note: You will need adb access for this to work, same as logcat. Read PREPARATIONS above to find adb files required and related setup.

What this will do is get us live kernel output so we can know things like "What driver is the kernel loading {or not loading for that matter}" and similar things.

Go to Android folder.. inside that you should find 3 files.. Now open a command prompt or terminal in that path..(wherever you extracted it.. use cd command)

Then inside that path.. type

adb shell dmesg > dmesg.txt

To get last_kmsg:

adb shell cat /proc/last_kmsg > kmsg.txt

From Android Device GET DMESG:Difficulty --> **

You can also get the dmesg by using terminal emulator.

dmesg > /sdcard/dmesg.txt

To get last_kmsg:

cat /proc/last_kmsg > /sdcard/last_kmsg.txt

FOR APP DEVS / ADVANCED USERS ONLY! LOGCAT INSTRUCTIONS:

Thanks to jaison thomas for this method! NOTE: I have not tested this. sorry. But it will definitely work. I edited the quoted message to make it simple. :)