Android Log debug(String tag, String msg)

Here you can find the source of debug(String tag, String msg)

Description

debug

Declaration

public static int debug(String tag, String msg) 

Method Source Code

//package com.java2s;

import android.util.Log;

public class Main {
    public static final String DEBUG_TAG = "C2DM";
    public static final boolean DEBUG_DEVELOPER_MODE = false;

    public static int debug(String msg) {
        return debug(DEBUG_TAG, msg);
    }/*from ww  w.  j a  va  2  s .  co  m*/

    public static int debug(String tag, String msg) {
        if (DEBUG_DEVELOPER_MODE) {
            return Log.d(tag, msg);
        } else {
            return 0;
        }
    }
}

Related

  1. debug(String msg)
  2. log(String TAG, String msg)
  3. log(String TAG, String msg, int type, Exception e)
  4. log(String msg)
  5. log(String msg, Exception e)