List of usage examples for android.util Log VERBOSE
int VERBOSE
To view the source code for android.util Log VERBOSE.
Click Source Link
From source file:Main.java
private static void log(String tag, int level, String msg, Throwable tr) { if (isLog) {//from w w w . j av a 2 s. com switch (level) { case Log.VERBOSE: if (tr == null) { Log.v(tag, msg); } else { Log.v(tag, msg, tr); } break; case Log.INFO: if (tr == null) { Log.i(tag, msg); } else { Log.i(tag, msg, tr); } break; case Log.DEBUG: if (tr == null) { Log.d(tag, msg); } else { Log.d(tag, msg, tr); } break; case Log.WARN: if (tr == null) { Log.w(tag, msg); } else { Log.w(tag, msg, tr); } break; case Log.ERROR: if (tr == null) { Log.e(tag, msg, tr); } else { Log.e(tag, msg, tr); } break; } } }
From source file:Main.java
private static boolean isPropertyEnabled(String propertyName) { return Log.isLoggable(propertyName, Log.VERBOSE); }
From source file:Main.java
public static int v(String tag, String msg) { return println(Log.VERBOSE, tag, msg); }
From source file:Main.java
public static void LOGV(final String tag, String message) { if (LOGGING_ENABLED) { if (Log.isLoggable(tag, Log.VERBOSE)) { Log.v(tag, message);//from w w w . j ava 2 s . c o m } } }
From source file:Main.java
public static void LOGV(final String tag, String message) { //noinspection PointlessBooleanExpression,ConstantConditions if (debug && Log.isLoggable(tag, Log.VERBOSE)) { Log.v(tag, message);//from ww w. j a v a2 s . com } }
From source file:Main.java
public static int v(String tag, String msg, Throwable tr) { return println(Log.VERBOSE, tag, msg + '\n' + getStackTraceString(tr)); }
From source file:Main.java
/** * @param message Message to display * @param type [Log.Error, Log.Warn, ...] * @param shouldPrint value that comes from Preferences which allows the user to decide if debug info should be printed to logcat. Error info will ALWAYS be displayed despite this value *///from www . j av a 2 s. c o m public static void debugFunc(String message, int type, boolean shouldPrint) { // errors must always be displayed if (type == Log.ERROR) { Log.e(LOG_TAG, message); } else if (shouldPrint) { switch (type) { case Log.DEBUG: Log.d(LOG_TAG, message); break; case Log.INFO: Log.i(LOG_TAG, message); break; case Log.VERBOSE: Log.v(LOG_TAG, message); break; case Log.WARN: Log.w(LOG_TAG, message); break; default: Log.v(LOG_TAG, message); break; } } }
From source file:Main.java
/** * Log with lvl verbose and tag {@link #DEFAULT_LOG_TAG}. * @param msg is the msg to log./*from w ww. ja v a 2s . co m*/ */ public static void logVerbose(String msg) { log(Log.VERBOSE, DEFAULT_LOG_TAG, msg); }
From source file:Main.java
public static void LOGV(final String tag, String message, Throwable cause) { if (LOGGING_ENABLED) { if (Log.isLoggable(tag, Log.VERBOSE)) { Log.v(tag, message, cause);/*from ww w . j a v a 2 s . c o m*/ } } }
From source file:Main.java
public static void LOGV(final String tag, String message, Throwable cause) { //noinspection PointlessBooleanExpression,ConstantConditions if (debug && Log.isLoggable(tag, Log.VERBOSE)) { Log.v(tag, message, cause);//ww w . j a v a 2 s . com } }