|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metaio.sdk.MetaioDebug
public final class MetaioDebug
This class is used to log all debug messages of the library.
Field Summary | |
---|---|
static String |
TAG
Log TAG |
Constructor Summary | |
---|---|
MetaioDebug()
|
Method Summary | |
---|---|
static void |
enableLogging(boolean enable)
Enable or disable logging |
static void |
log(int priority,
String msg)
Display log messages with the given priority Log.DEBUG priority is used for deeper debugging and is disabled for the release |
static void |
log(String msg)
Display log messages with debug priority |
static void |
printStackTrace(int priority,
Exception e)
Log stack trace of an exception |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String TAG
Constructor Detail |
---|
public MetaioDebug()
Method Detail |
---|
public static void enableLogging(boolean enable)
enable
- public static void log(String msg)
msg
- Message to displayLog#d(String, String)
public static void log(int priority, String msg)
Log.DEBUG priority is used for deeper debugging and is disabled for the release
priority
- Priority, e.g. Log.INFO, Log.ERRORmsg
- Message to displayLog
public static void printStackTrace(int priority, Exception e)
priority
- Log priority, e.g. Log.ERROR, Log.WARNe
- Exceptionlog
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |