Example usage for android.util Log d

List of usage examples for android.util Log d

Introduction

In this page you can find the example usage for android.util Log d.

Prototype

public static int d(String tag, String msg) 

Source Link

Document

Send a #DEBUG log message.

Usage

From source file:Main.java

private static boolean shouldStrip(String filename) {
    Log.d(TAG, "check should strip:" + filename);
    return !filename.toLowerCase().startsWith("install.txt");
}

From source file:Main.java

public static void logDebug(String message) {
    Log.d(LOG_TAG, message);
}

From source file:Main.java

/** Information about the current build, taken from system properties. */
public static void logDeviceInfo(String tag) {
    Log.d(tag,
            "Android SDK: " + Build.VERSION.SDK_INT + ", " + "Release: " + Build.VERSION.RELEASE + ", "
                    + "Brand: " + Build.BRAND + ", " + "Device: " + Build.DEVICE + ", " + "Id: " + Build.ID
                    + ", " + "Hardware: " + Build.HARDWARE + ", " + "Manufacturer: " + Build.MANUFACTURER + ", "
                    + "Model: " + Build.MODEL + ", " + "Product: " + Build.PRODUCT);
}

From source file:Main.java

public static void DebugGCM(String tag, String message) {
    //
    if (DEBUG_GCM) {
        Log.d(tag, message);
    }

}

From source file:Main.java

public static void LogIfNull(String tag, Object obj, String objectName) {
    if (obj == null) {
        Log.d(tag, "NullObject::" + objectName);
    }//from   w  w w .  j av a 2  s  .c om
}

From source file:Main.java

public static void DebugJSON(String tag, String message) {
    // 
    if (DEBUG_JSON) {
        Log.d(tag, message);
    }
}

From source file:Main.java

public static void createDir(String dirPath) {
    File dir = new File(dirPath);
    if (!dir.exists()) {
        Log.d("createDir", dir.getPath() + " does not exist. Creating");
        if (!dir.mkdir()) {
            Log.e("createDir", "Unable to create " + dir.getPath());
        }/*  w w w  . j  av a2 s .  com*/
    }

}

From source file:Main.java

public static void D(String value) {
    if (isPrintLog) {
        Log.d(TAG, value);
    }

}

From source file:Main.java

public static void debug(String message) {
    if (debugMode) {
        Log.d(tag, message);
    }
}

From source file:Main.java

public static void d(String msg) {
    if (isDebug) {
        Log.d(mTag, msg);
    }
}