List of usage examples for android.util Log v
public static int v(String tag, String msg, Throwable tr)
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); }/*from ww w . java 2s . c o m*/ }
From source file:Main.java
public static Set<InetAddress> getLocalAddresses() { Set<InetAddress> addresses = new HashSet<InetAddress>(); Enumeration<NetworkInterface> networkInterfaces; try {/*from w w w. jav a 2s .c o m*/ networkInterfaces = NetworkInterface.getNetworkInterfaces(); } catch (SocketException e) { Log.v(TAG, "getNetworkInterfaces(): " + e.getMessage(), e); return null; } while (networkInterfaces.hasMoreElements()) { NetworkInterface networkInterface = networkInterfaces.nextElement(); Enumeration<InetAddress> addressEnum = networkInterface.getInetAddresses(); while (addressEnum.hasMoreElements()) { addresses.add(addressEnum.nextElement()); } } return addresses; }
From source file:Main.java
/** * decide use XLOG or android default log * @param tag log tag/*from www . j av a2 s. com*/ * @param msg log info message * @param tr An exception to log * @return log level */ public static int v(String tag, String msg, Throwable tr) { return /*XLOG_ON ? Xlog.v(tag, msg, tr) : */Log.v(tag, msg, tr); }
From source file:com.snicesoft.basekit.LogKit.java
public static void v(String content, Throwable tr) { if (!allowV)//w w w. j a v a 2 s . c o m return; StackTraceElement caller = getCallerStackTraceElement(); String tag = generateTag(caller); Log.v(tag, content, tr); }
From source file:li.klass.fhem.appwidget.WidgetConfiguration.java
private static WidgetType getWidgetTypeFromName(String widgetTypeName) { try {//from www . ja v a 2s.c o m return WidgetType.valueOf(widgetTypeName); } catch (Exception e) { Log.v(WidgetConfiguration.class.getName(), "cannot find widget type for name " + widgetTypeName, e); return null; } }