Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>The <a href="http://developer.android.com/reference/android/util/Log.html" rel="noreferrer">Android Documentation says the following about Log Levels</a>:</p> <blockquote> <p>Verbose should never be compiled into an application except during development. Debug logs are compiled in but stripped at runtime. Error, warning and info logs are always kept.</p> </blockquote> <p>So you may want to consider stripping the log Verbose logging statements out, <a href="https://stackoverflow.com/questions/2018263/android-logging/2019002#2019002">possibly using ProGuard as suggested in another answer</a>.</p> <p>According to the documentation, you can configure logging on a development device using System Properties. The property to set is <code>log.tag.&lt;YourTag&gt;</code> and it should be set to one of the following values: <code>VERBOSE</code>, <code>DEBUG</code>, <code>INFO</code>, <code>WARN</code>, <code>ERROR</code>, <code>ASSERT</code>, or <code>SUPPRESS</code>. <a href="http://developer.android.com/reference/android/util/Log.html#isLoggable(java.lang.String,%20int)" rel="noreferrer">More information on this is available in the documentation for the <code>isLoggable()</code> method.</a></p> <p>You can set properties temporarily using the <code>setprop</code> command. For example:</p> <pre><code>C:\android&gt;adb shell setprop log.tag.MyAppTag WARN C:\android&gt;adb shell getprop log.tag.MyAppTag WARN </code></pre> <p>Alternatively, you can specify them in the file '/data/local.prop' as follows:</p> <pre><code>log.tag.MyAppTag=WARN </code></pre> <p>Later versions of Android <a href="https://stackoverflow.com/a/18556839/2721824">appear to require that /data/local.prop be read only</a>. This file is read at boot time so you'll need to restart after updating it. If <code>/data/local.prop</code> is world writable, it will likely be ignored.</p> <p>Finally, you can set them programmatically using the <a href="http://developer.android.com/reference/java/lang/System.html#setProperty(java.lang.String,%20java.lang.String)" rel="noreferrer"><code>System.setProperty()</code> method</a>.</p>
 

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