コード例 #1
0
ファイル: VolleyLog.java プロジェクト: Jilberta/CloudLibrary
  /**
   * Customize the log tag for your application, so that other apps using Volley don't mix their
   * logs with yours. <br>
   * Enable the log property for your tag before starting your app: <br>
   * {@code adb shell setprop log.tag.&lt;tag&gt;}
   */
  public static void setTag(String tag) {
    d("Changing log tag to %s", tag);
    TAG = tag;

    // Reinitialize the DEBUG "constant"
    DEBUG = Log.isLoggable(TAG, Log.VERBOSE);
  }