Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

LogCat not displaying TAG "SMS"

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);

    Log.e("SMS","Hello World");   //not showing
    Log.v("SMS","Hello World");   //not showing
    Log.i("SMS","Hello World");   //not showing
    Log.d("SMS","Hello World");   //not showing

    Log.i("sms","Hello World");   //showing
}

Why the Logging in the Logcat is not working for some line in the above code??

like image 540
zangeed Avatar asked Jan 02 '12 10:01

zangeed


2 Answers

There are some tags that don't go to the default buffer, as has been stated.

You can view them by specifying which buffer to view with the "-b" logcat option. Check section Viewing Alternative Log Buffers of Using LogCat to view the different buffers available. For example, to see the "SMS" logcat messages, start logcat with:

adb logcat -b radio
like image 53
Turnsole Avatar answered Oct 21 '22 10:10

Turnsole


There is a separate buffer for all telephony related log messages, whichwon't appear in default LogCat window.

like image 24
Siraj Uddin Avatar answered Oct 21 '22 11:10

Siraj Uddin