Android Log debug(String msg)

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

Description

debug

Declaration

public static int debug(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   w  ww.  j a v  a2  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 tag, String msg)
  2. log(String TAG, String msg)
  3. log(String TAG, String msg, int type, Exception e)
  4. log(String msg)