Questions tagged [logging]

Logging is the process by which the system records what's going on - i.e. events, errors, warnings, and related information. Most apps provide details in log files, so the system logs help to debug problems.

Apps can provide quite extensive logging information. To be able to handle that amount of data generated, Android organizes its system logs in circular buffers (also called "ring buffer"). This way the size of the logs is fixed (and can be adjusted to available ressources); as soon as the buffer is full, older entries "age out" and get replaced by newer ones.

Android provides different tools to investigate its logs. There are several apps available at Google Play (watch for the terms "logcat" or "catlog"), but starting with JellyBean they require root access to show all available logs. From a shell (e.g. via ADB or a terminal emulator) there are several tools available by default, which require root only for a subset of their operations. Two examples include logcat3 and dmesg2.

Note that these utilities cannot provide data in the pre-boot (i.e., bootloader) stage, for that specialized debugging utilities running over UART is required.

For more details, please also see:

276 questions
143
votes
4 answers

How can I view and examine the Android log?

There is a lot of interesting stuff in the Android system log, that is helpful in many ways find root causes of problems identify misbehaving apps How can I view and examine the Android log?
Flow
  • 18,464
  • 16
  • 79
  • 138
16
votes
3 answers

Where are log files located on Android?

Possible Duplicate: How can I view and examine the Android log? My android (2.1) phone (a HTC Wildfire, if that matters) sometimes reboots without an apparent reason. Not extremely frequently, but too much to simply ignore it. I'd say once every…
pierre
12
votes
2 answers

What is the format of Android's logs?

I'm trying to gather data about my phone by analyzing the log files in /dev/log. I'm specifically looking at /dev/log/main. I always thought that any sane log format would be plain text, yet these files appear to be either binary or in some…
Scott Severance
  • 1,686
  • 8
  • 27
  • 46
7
votes
2 answers

View LogCat from unrooted android device without computer assistance

Ever since Android 4.1's new security model, all LogCat viewers I've came across require root access. Even the LogCat viewer for the IDE I'm using (AIDE) won't work. Without rooting my device, or needing a computer to assist me, how could I view the…
Dioxin
  • 205
  • 3
  • 7
7
votes
4 answers

Can I delete the log files on my device?

I'm currently developing on an Android 2.3.4 device. I've got root access to the file system, and I'm looking for the location of the system log files (like /var/log) so that I can delete them, but could not find these files on Android. Does someone…
truell
  • 71
  • 1
  • 1
  • 2
4
votes
2 answers

How to get dumpstate logs in samsung galaxy grand?

While working on my app, I have faced app crash. But I can't get any dumpstate log from data/log folder. So what is the solution to get dumpstate. Or I have to create any folder on my app name in data folder? Advance thanks for your help..
user39858
  • 51
  • 1
  • 1
  • 2
4
votes
1 answer

Retrieve stored logger data (Android Oreo or Pie, maybe even higher)

I found an option to store logs: Settings -> System -> Advanced -> Developer options -> Store logger data persistently on device. I wonder where these logs are saved and how we retrieve them. I searched online but found no result.
Yai0Phah
  • 225
  • 2
  • 8
3
votes
2 answers

Android Log Output KINETO

On my T mobile G2 there is always a lot of action in my Log output that has the tag KINETO these are the two most common things it puts in there: ERROR/KINETO(9304): KLOG0C3- xmk_QueryOSQueue SDL Queue empty : WAIT_FOREVER ERROR/KINETO(9304):…
FoamyGuy
  • 1,533
  • 1
  • 12
  • 26
3
votes
1 answer

ConnectivityExtension: ConnectivityExt jar file not present

When using adb logcat to get debug messages from my phone, I get many of those lines: 04-23 18:16:51.085 1428 1951 W ConnectivityExtension: ConnectivityExt jar file not present 04-23 18:16:51.187 1428 1951 W ConnectivityExtension:…
cweiske
  • 203
  • 2
  • 13
2
votes
0 answers

Are there any log files you can examine do determine why an unrooted Android device is rebooting repeatedly?

Possible Duplicate: Where are log files located on Android? Yesterday evening I left wi-fi enabled overnight. This morning I found my Archos 101 rebooting over and over again (eating up the battery power very quickly). I managed to shut it down,…
Edelcom
  • 6,917
  • 16
  • 50
  • 82
2
votes
1 answer

Is it possible to disable logcat logging for an application?

Is it possible to disable logging to the logcat for an application (APK) in Android entirely. Since i make heavy use of my logcat output, I'd like to see only bits that are relevant to me but there are a lot of apps that write to the logcat, it is…
Mridang Agarwalla
  • 845
  • 5
  • 15
  • 24
2
votes
1 answer

Where and how do I read logs for a specific app?

I know there are a lot of threads about android logs but I can't find an answer to this: Where and how do I read logs for a specific app? I have installed the Android SDK, connected my device and launched Eclipse and choose DDMS. Now, the Logcat is…
Syl
  • 21
  • 1
  • 2
2
votes
0 answers

Getting the activities of the user

Is it possible to get a list of user activities? I want to know when the phone was opened, when it was locked, etc. Just the basic things.
Deian
  • 21
  • 1
2
votes
0 answers

Trace/log of all activity on my android device

Is it possible to put on trace or get log of all activity on android device. If so, How?Also are there any key logger application
2FaceMan
  • 243
  • 2
  • 8
2
votes
0 answers

Access HCI bluetooth log from Samsung s8

I have enabled the developer setting "Enable Bluetooth HCI snoop log", toggled the Bluetooth setting and restarted the phone. I have not being able to find the log files anywhere and was wondering how to access them.
Django
1
2 3