@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??
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
There is a separate buffer for all telephony related log messages, whichwon't appear in default LogCat window.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With