title: How do you log to an Android device like system apps?
body: <p>I would like to be able to save and print logcat messages when my device is disconnected from the computer, and then when I plug it in, to have all the messages be printed to logcat.</p>
  <p>Currently, when I log, this does not happen. When I plug my phone in, I can hook the device to logcat and lots of logs from the day get printed into logcat. They are listed under my app's process. My logs are not there though. How can I get them there?</p>
  <p>Here is how I log:</p>
  <pre><code>    public static final String TAG = &quot;Service&quot;;
      Log.v(TAG, &quot;log&quot;);
  </code></pre>
  <p>Edit: Yesterday, I disconnected from logcat with a process running. Then today, I reconnected to logcat. Since I still had a filter for my logs on, logs from the last few hours printed. I then turned the filter on and off and all of them disappeared.</p>