|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.nativex.common.Log
public class Log
This class is used to control debug messages to the console for OfferWall SDK related classes.
Field Summary | |
---|---|
private static boolean |
showLog
This flag determines if the SDK will send log messages to the device. |
private static String |
TAG
The tag to use with the SDK log messages. |
Constructor Summary | |
---|---|
Log()
|
Method Summary | |
---|---|
static void |
a(String msg)
Set a assert log message. |
static void |
a(String msg,
Throwable tr)
Set a assert log message. |
static void |
d(String msg)
Set a debug log message. |
static void |
d(String msg,
Throwable tr)
Set a debug log message. |
static void |
e(String msg)
Set a error log message. |
static void |
e(String msg,
Throwable tr)
Set a error log message. |
static void |
enableLogging(boolean enable)
Enables or disables logging. |
static void |
i(String msg)
Set a info log message. |
static void |
i(String msg,
Throwable tr)
Set a info log message. |
static boolean |
isLogging()
Checks if the SDK Log is enabled. |
private static void |
print(int priority,
String msg)
Integrnal method. |
private static void |
print(int priority,
String msg,
Throwable tr)
Internal method. This is the methods that does the printing of the log to the device. |
static void |
v(String msg)
Set a verbose log message. |
static void |
v(String msg,
Throwable tr)
Set a verbose log message. |
static void |
w(String msg)
Set a warn log message. |
static void |
w(String msg,
Throwable tr)
Set a warn log message. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static boolean showLog
private static String TAG
Constructor Detail |
---|
public Log()
Method Detail |
---|
public static void enableLogging(boolean enable)
public static boolean isLogging()
Boolean
. true - the SDK will send log messages, false - no log.public static void v(String msg)
msg
- Log message to output to the console.public static void v(String msg, Throwable tr)
msg
- Log message to output to the console.tr
- A Throwable
which stack trace will be printed.public static void d(String msg)
msg
- Log message to output to the console.public static void d(String msg, Throwable tr)
msg
- Log message to output to the console.tr
- A Throwable which stack trace will be printed.public static void i(String msg)
msg
- Log message to output to the console.public static void i(String msg, Throwable tr)
msg
- Log message to output to the console.tr
- A Throwable which stack trace will be printed.public static void w(String msg)
msg
- Log message to output to the console.public static void w(String msg, Throwable tr)
msg
- Log message to output to the console.tr
- A Throwable which stack trace will be printed.public static void e(String msg)
msg
- Log message to output to the console.public static void e(String msg, Throwable tr)
msg
- Log message to output to the console.tr
- A Throwable which stack trace will be printed.public static void a(String msg)
msg
- Log message to output to the console.public static void a(String msg, Throwable tr)
msg
- Log message to output to the console.tr
- A Throwable which stack trace will be printed.private static void print(int priority, String msg, Throwable tr)
priority
- The priority of the messages - VERBOSE, DEBUG, INFO, WARN, ERROR, ASSERT.msg
- The message to log.tr
- A Throwable
to log. This is best used in a catch block.private static void print(int priority, String msg)
priority
- The priority of the messages - VERBOSE, DEBUG, INFO, WARN, ERROR, ASSERT.msg
- The message to log.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |