Questions tagged [android-logcat]

Logcat is the command to view and filter information from the Android logging system, but more often the name is used as a synonym for the Android logging system itself.

Logcat is the command to view and filter information from the Android logging system, but more often the name is used as a synonym for the Android logging system itself.

Logging information from Logcat is vital for diagnosing problems and debugging Android apps.

To retrieve information from logcat manually the Android Debug Bridge (ADB) command line tool is used. Alternatively the Eclipse IDE provides a logcat view in its Android DDMS perspective, that automatically retrieves logging information

Detailed information on the logcat command is available at the Android Developers API.

For non-developer questions, see the Android Enthusiasts StackExchange.

1085 questions
303
votes
8 answers

Unexpected value from nativeGetEnabledTags: 0

I installed the latest version of the SDK (r21) and ADT 21.0.0. I tried simple code, and it works well, but now I get a warning in LogCat that did not appear in the previous versions: Unexpected value from nativeGetEnabledTags: 0 I googled it, and…
Laksh
  • 6,717
  • 6
  • 33
  • 34
198
votes
5 answers

Meaning of Choreographer messages in Logcat

I installed the latest versions of SDK (API 16) and got the latest ADT. I'm now seeing these messages in the logcat, that I'm quite sure, I haven't seen before. Does anyone have an idea about this? 06-29 23:11:17.796: I/Choreographer(691): Skipped…
Code Poet
  • 11,227
  • 19
  • 64
  • 97
193
votes
26 answers

Restore LogCat window within Android Studio

I have recently started to use Android Studio v0.1.1, And i can't seem to find LogCat... Is it gone? Or if not, how can I enable it? If it is gone, is there any way to enable something similar to log my app behavior (and mainly crashes)?
rel-s
  • 6,108
  • 11
  • 38
  • 50
169
votes
5 answers

Filter output in logcat by tagname

I'm trying to filter logcat output from a real device (not an emulator) by tag name but I get all the messages which is quite a spam. I just want to read messages from browser which should be something like "browser:" or "webkit:" , but it doesn't…
munch
  • 2,061
  • 2
  • 16
  • 23
143
votes
8 answers

Read logcat programmatically within application

I want to read and react to logcat logs within my application. I found the following code: try { Process process = Runtime.getRuntime().exec("logcat -d"); BufferedReader bufferedReader = new BufferedReader( new…
David
  • 37,109
  • 32
  • 120
  • 141
135
votes
16 answers

Logcat crashes with error: unexpected EOF

I’m running some lengthy calculations and something goes wrong quite late. I tried using breakpoints, but with no success so far. So I put into the loop a Log.d to monitor... But quite soon, Logcat crashes with: 02-08 16:35:42.820…
Noh Kumado
  • 1,551
  • 2
  • 9
  • 15
117
votes
18 answers

Android Studio - ADB Error - "...device unauthorized. Please check the confirmation dialog on your device."

So I started getting errors in my ADB logs which, I think, are causing my device to now display any logcat output for my app. I am getting all the logcat output except the one from the app itself. PropertyFetcher: AdbCommandRejectedException getting…
Georgi Angelov
  • 4,338
  • 12
  • 67
  • 96
116
votes
31 answers

Logcat not displaying my log calls

I'm a total noob at Android programming, and wanted to learn how to debug my apps. I can't seem to have my Log.i|d|v calls displayed in the LogCat. Here's the code that I'm using. As you can see I have defined a LOG_TAG constant, but can't seem…
Cavachon
  • 2,819
  • 4
  • 21
  • 20
85
votes
5 answers

android logcat logs chatty module line expire message

I am getting lots of this kind of logcat messages related to my application. 11-19 19:04:23.872 3327 3440 I chatty : uid=10085 com.xxxx.yyy expire 18 lines What are these log messages? Am I missing my actual application logcat logs here?
AndRSoid
  • 1,777
  • 2
  • 13
  • 25
78
votes
6 answers

How to stop logcat from scrolling in Android Studio

I used Eclipse before and I could easily stop logcat from scrolling, but I can't find same funcionality in Android studio. Anyone knows how to do it?
Drag0
  • 8,438
  • 9
  • 40
  • 52
70
votes
2 answers

Prevent Android logcat clear during app restart

I am using Android Studio 1.5.1 and it clears the logcat buffer during app restart. Now my app crashes, restarts and I don't see what happens just before the crash. Is there a way for logcat in Android Studio not to clear during the app restart? I…
jpou
  • 1,935
  • 2
  • 21
  • 30
68
votes
11 answers

How to save LogCat contents to file?

I've added debug strings (using Log.d()) and want to see them in context from the contents of logCat. The "save" icon for LogCat has a "Save selected items" hint, but there's got to be a quick way to just save the entire contents, or select the…
65
votes
3 answers

How to exclude Log Tag in logcat Android Studio?

I'm not sure if this kind of question been asked before (I did Google it but not found the proper way to solve my question). what I hope is I can disable (exclude) Log Tag from libraries used in my project. I tried to go in Logcat console > Edit…
myNameCoad
  • 2,583
  • 2
  • 12
  • 15
57
votes
8 answers

Disable LogCat Output COMPLETELY in release Android app?

Shutting off my own app's LogCat output before releasing an app to the market is straightforward. I also know how to selectively filter LogCat message by tag and/or id for my own debug convenience. But now I am interested in something that may be…
Android Eve
  • 14,864
  • 26
  • 71
  • 96
47
votes
2 answers

SQLite Database gives warning automatic index on (column) After upgrading Android L

I have upgraded my Nexus 7 with Android 5.0 Lollipop, Before that my application going well with SQLite Database but now Whenever I execute any type of query, It gives me log cat error like: 12-09 12:37:04.942: E/SQLiteLog(13041): (284) automatic…
Pratik Butani
  • 60,504
  • 58
  • 273
  • 437
1
2 3
72 73