Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I should have read the documentation for <code>logcat</code> before I started hunting through source. According to <code>logcat</code>'s documentation:</p> <blockquote> <p>The Android logging system keeps multiple circular buffers for log messages, and not all of the log messages are sent to the default circular buffer.</p> </blockquote> <p>Messages with a tag of <code>SMS</code> are sent to the radio buffer, not the main buffer. Hence you won't see them unless you go out of your way to do so. If you run the command:</p> <blockquote> <p><code>adb logcat -b radio</code></p> </blockquote> <p>you should see your missing log messages. The above information can be found in <a href="https://developer.android.com/tools/debugging/debugging-log.html" rel="nofollow">https://developer.android.com/tools/debugging/debugging-log.html</a>.</p> <hr> <p>Now, for those of you interested in code spelunking, below is my original answer:</p> <p>The methods in the <code>Log</code> class are all wrappers around <code>println_native</code> which is a JNI method.<br> <code>println_native</code> performs some validation of its parameters and then calls <code>__android_log_buf_write</code>.</p> <p>Now this latter method compares the tag parameter (from the original <code>Log.d</code> call) against several hard-coded strings (with the tag <em>SMS</em> being one of this list) and if it finds a match, winds up writing the log message to a different file!</p> <p>By the way, other tags that get rerouted are GSM, STK, PHONE, CDMA, and a few others.</p> <p>Relevant source can be read in </p> <ul> <li><p><a href="http://www.java2s.com/Open-Source/Android/android-core/platform-frameworks-base/android/util/Log.java.htm" rel="nofollow">http://www.java2s.com/Open-Source/Android/android-core/platform-frameworks-base/android/util/Log.java.htm</a></p></li> <li><p><a href="https://pdroid.googlecode.com/svn/android-2.3.4_r1/trunk/frameworks/base/core/jni/android_util_Log.cpp" rel="nofollow">https://pdroid.googlecode.com/svn/android-2.3.4_r1/trunk/frameworks/base/core/jni/android_util_Log.cpp</a></p></li> <li><p><a href="https://in-the-box.googlecode.com/svn-history/r4/trunk/InTheBoxSim/liblog/logd_write.c" rel="nofollow">https://in-the-box.googlecode.com/svn-history/r4/trunk/InTheBoxSim/liblog/logd_write.c</a></p></li> <li><p><a href="http://www.takatan.net/lxr/source/drivers/staging/android/logger.h#L33" rel="nofollow">http://www.takatan.net/lxr/source/drivers/staging/android/logger.h#L33</a> </p></li> </ul> <p>These aren't the official links and may disappear at some point. I'll try and track down the official links and edit this later this evening.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload