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
10
votes
2 answers

extend Android.util.Log to write to file

I would like to extend the android.util.Log class to also write to a log file in internal storage of the device, preferrably also for specific TAGS. I currently have an implementation: public class CustomLogger{ private final static Logger fileLog…
Ricky
  • 1,673
  • 2
  • 19
  • 23
10
votes
2 answers

logcat filled with message "Unexpected value from nativeGetEnabledTags: 0" - how to get rid of this?

Possible Duplicate: Unexpected value from nativeGetEnabledTags: 0 I have just installed the latest version of SDK (r21) and ADT 21.0.0. I shifted my project from the eclipse, I was using previously to the newer version. After shifting the project…
android_newbie
  • 667
  • 2
  • 14
  • 32
9
votes
0 answers

android logcat read unexpected eof in android 6.0 or android 7.0

I think it is that the log is too much lead to the problem, because I increase the ring buffer of the logd,just Logcat -G 5m ,it will make the problem happen slowly,but it still have。how can I solve this question
yusong xu
  • 91
  • 1
  • 2
9
votes
2 answers

Samsung Phones emit a lot of log messages on logcat

Logcat on Samsung phones is a real pain. They have just too much on the logcat of their own to make our developing life easy. Is there a way to reduce and filter OUT their message for noisy packages on logcat ? I am not asking if there is a way to…
Siddharth
  • 9,349
  • 16
  • 86
  • 148
9
votes
0 answers

Android Studio - How to Customize Logcat Output Format ?

I want to know which way to change Logcat Output Format in Android DDMS. I 'm using Android Studio 0.4.2 on MAC. I know that I can customize the format from terminal but I also need to do this in Android DDMS Monitor tool. Link to customize .
Noman
  • 249
  • 3
  • 14
9
votes
1 answer

Android : Application with Crash dump report

I want to develop a log frame work for my application .The things i want to achieve is Trace the log of my application Write the log to a text file while tracing the log Filter the log genrated by my application Stop the log trace if any…
edwin
  • 7,985
  • 10
  • 51
  • 82
9
votes
1 answer

How are logcat messages saved

Following Where are Android logcat files stored? I learn that logcat is saved as an internal ring buffer in the kernel, which is sized 256kb. Applications use a special API to ask the kernel to save logs. My device logs are wayyyyyy larger. I know…
elcuco
  • 8,948
  • 9
  • 47
  • 69
8
votes
5 answers

Your content must have a TabHost whose id attribute is 'android.R.id.tabhost'

I have a problem: Java Code public class VisualizzaListaActivity extends TabActivity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); …
Matteo Cardellini
  • 876
  • 2
  • 17
  • 41
8
votes
5 answers

Phone's Processes Flooding LogCat Output -- How To Eliminate those Messages?

I know how to filter out messages in LogCat, so that's not what I am asking about. The problem is that certain phones are "noisier" than others and flood the LogCat buffer to the point of triggering a bug that makes it discard newer messages. This…
uTubeFan
  • 6,664
  • 12
  • 41
  • 65
8
votes
4 answers

Android Studio 3.0 Logcat continuously showing messages and does not stop

When I start debugging my App in Android Studio 3.0 and open the Logcat, it displays so many messages and warnings, but the problem is, it never stops, even when the debugging is completed and the App is terminated, it still prints so many messages…
8
votes
2 answers

How to highlight filter/search hits in Android Studio Logcat

I filter my Logcat lines based on a single String, as depicted below: But there I face numerous long long lines and I have much trouble recognizing the wanted values in the middle of the lines. For example, in the above picture, it would be to much…
Behnam
  • 6,510
  • 6
  • 35
  • 65
8
votes
1 answer

How to disable D/libc from logging network information into logcat?

I am getting a lot of debugging log in my Android logcat like this: 10-16 17:21:38.422 22842-23270/package D/libc﹕ [NET] getaddrinfo+,hn 23(0x696d616765732e),sn(),family 0,flags 4 10-16 17:21:38.422 22842-23270/package D/libc﹕ [NET]…
paradite
  • 6,238
  • 3
  • 40
  • 58
8
votes
1 answer

logcat error Index -1 requested, with a size of 24

I got this error when running a project that uses the SqliteAssetHelper library: FATAL EXCEPTION: main android.database.CursorIndexOutOfBoundsException: Index -1 requested, with a size of 24 at…
hamedjj
  • 658
  • 6
  • 20
8
votes
6 answers

Taking logcat and kernel logs simultaneously

I am trying to take logs (logcat and kmsg) via the following command "logcat -v time -f /dev/kmsg | cat /proc/" However I am not sure, where the log file is stored, and what will be its name. How do I identify it
manugupt1
  • 2,337
  • 6
  • 31
  • 39
8
votes
3 answers

Could not find class 'android.support.v7.widget.SearchView$5'

I get this error in y Logcat. Does anyone know what it is? 08-22 19:02:57.830: E/dalvikvm(660): Could not find class 'android.support.v7.widget.SearchView$5', referenced from method…
Bombolo
  • 749
  • 2
  • 8
  • 19