com.duowan.mobile.netroid
Class NetroidLog

java.lang.Object
  extended by com.duowan.mobile.netroid.NetroidLog

public class NetroidLog
extends java.lang.Object

Logging helper class.


Nested Class Summary
(package private) static class NetroidLog.MarkerLog
          A simple event log with records containing a name, thread ID, and timestamp.
 
Field Summary
static boolean DEBUG
           
static java.lang.String TAG
           
 
Constructor Summary
NetroidLog()
           
 
Method Summary
static void d(java.lang.String format, java.lang.Object... args)
           
static void e(java.lang.String format, java.lang.Object... args)
           
static void e(java.lang.Throwable tr, java.lang.String format, java.lang.Object... args)
           
static void setTag(java.lang.String tag)
          Customize the log tag for your application, so that other apps using Netroid don't mix their logs with yours.
static void v(java.lang.String format, java.lang.Object... args)
           
static void wtf(java.lang.String format, java.lang.Object... args)
           
static void wtf(java.lang.Throwable tr, java.lang.String format, java.lang.Object... args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TAG

public static java.lang.String TAG

DEBUG

public static boolean DEBUG
Constructor Detail

NetroidLog

public NetroidLog()
Method Detail

setTag

public static void setTag(java.lang.String tag)
Customize the log tag for your application, so that other apps using Netroid don't mix their logs with yours.
Enable the log property for your tag before starting your app:
adb shell setprop log.tag.<tag>


v

public static void v(java.lang.String format,
                     java.lang.Object... args)

d

public static void d(java.lang.String format,
                     java.lang.Object... args)

e

public static void e(java.lang.String format,
                     java.lang.Object... args)

e

public static void e(java.lang.Throwable tr,
                     java.lang.String format,
                     java.lang.Object... args)

wtf

public static void wtf(java.lang.String format,
                       java.lang.Object... args)

wtf

public static void wtf(java.lang.Throwable tr,
                       java.lang.String format,
                       java.lang.Object... args)