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:

287 questions
145
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,506
  • 16
  • 80
  • 138
29
votes
4 answers

Where can I find out when I installed an app?

Is there a Play Store log file? Or should I be looking where apps are installed on the phone for time/date stamps?
21
votes
2 answers

Dropbox app not installed, but there is log activity in /data/system/dropbox

I don't have Dropbox app installed nor DropBox account, but whilst checking log files I've found that there is a /data/system/dropbox directory with log files from, I think, the last time I rebooted my phone. Why might this present? Is it possibly…
Logos
  • 3,861
  • 1
  • 18
  • 24
20
votes
3 answers

Does Android keep a log of when it boots?

I'm making a parental control/accountability app for Android. It consists of a monitoring service that runs in the background and starts when the phone is booted. Unfortunately, I have found that when Android is started in "Safe Mode", services are…
ferm10n
  • 301
  • 1
  • 2
  • 4
17
votes
7 answers

How can I monitor and log data connection mode and rate, and log with location?

I would like to understand what connection type and theoretical data rate my phone is using for its data connection, and how it changes with different locations. I'm not looking for an actual data speed test like speedtest.net, but rather a logging…
tim11g
  • 433
  • 1
  • 7
  • 13
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
16
votes
2 answers

How to diagnose battery drain on Android device using logcat?

I have been facing a severe battery drain issue on my official Cyanogenmod custom ROM. After discussing it on community forums, it was suggested that I use logcat for troubleshooting the problem. Problem: Every time I disconnect my device after a…
theHeman
  • 293
  • 1
  • 3
  • 9
14
votes
5 answers

How can I record touches?

Is there an existing app I can install that will record my touch interactions in the background? I just saw this and it made me want to play around with my touch data to see what it looked like. Didn't turn up any likely candidates here or in the…
jj33
  • 241
  • 1
  • 2
  • 4
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,696
  • 8
  • 27
  • 47
12
votes
2 answers

Problems accessing message logs on Jelly Bean with aLogcat

Summary I have been having problems accessing the K9 log messages using aLogcat, see below for more details. What I would like to know is: Why are no log messages from K9 appearing in the aLogcat log viewer? Does anyone have any suggestions as to…
Mark Booth
  • 1,076
  • 3
  • 16
  • 42
10
votes
1 answer

How can I get a LogCat?

Sometimes I get asked for a LogCat. What is this? What is it supposed to do? How can I get it?
Leandros
  • 840
  • 1
  • 8
  • 16
10
votes
2 answers

How to get adb logcat to filter ONLY by specific app (package name)

Would like to know how can I get the adb logcat of ONLY certain app, and all its errors and messages associated. I've tried before with adb logcat -c; adb logcat | grep com.fitbit.FitbitMobile, but the thing is, it forces a grep on EVERY line, and…
Smeterlink
  • 284
  • 1
  • 3
  • 11
10
votes
3 answers

How to get current (foreground) activity name?

I'm trying to make an automatic night mode for my phone using "Automate", but I can't find certain app activities. How do I get to know what activities are executed in the foreground at the moment, so I can start it?
Deerie
  • 101
  • 1
  • 1
  • 4
10
votes
7 answers

Does access to logcat need root?

My device is already rooted, this is why I'm asking. Do you need root to monitor the logcat stream on the phone? If I ran the logcat command from within a Terminal on the phone, would that work?
Wulfbane
  • 201
  • 1
  • 3
  • 6
9
votes
3 answers

How can I access android log files on my Nexus 7 without root access?

Since aLogcat now no longer works with Jelly Bean, how can I access the system log files on my device without either root access or attaching it to a computer? I have tried using adb logcat from my PC and that worked fine, so I know that plenty of…
Mark Booth
  • 1,076
  • 3
  • 16
  • 42
1
2 3
19 20