public class Log
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
swigCMemOwn |
Constructor and Description |
---|
Log(long cPtr,
boolean cMemoryOwn) |
Modifier and Type | Method and Description |
---|---|
static void |
debug(java.lang.String text)
Logs specified debug message (if debug logging is enabled).
|
void |
delete() |
static void |
error(java.lang.String text)
Logs specified error message (if error logging is enabled).
|
static void |
fatal(java.lang.String text)
Logs specified fatal error message and terminates.
|
protected void |
finalize() |
static long |
getCPtr(Log obj) |
static java.lang.String |
getTag()
Returns the tag for the log events.
|
static void |
info(java.lang.String text)
Logs specified info message (if info logging is enabled).
|
static boolean |
isShowDebug()
Returns the state of internal debug message logging.
|
static boolean |
isShowError()
Returns the state of error logging.
|
static boolean |
isShowInfo()
Returns the state of general info logging.
|
static boolean |
isShowWarn()
Returns the state of warning logging.
|
static void |
setShowDebug(boolean showDebug)
Enables or disables writing internal debug messages to the log.
|
static void |
setShowError(boolean showError)
Enables or disables writing error messages to the log.
|
static void |
setShowInfo(boolean showInfo)
Enables or disables writing info messages to the log.
|
static void |
setShowWarn(boolean showWarn)
Enables or disables writing warning messages to the log.
|
static void |
setTag(java.lang.String tag)
Sets the tag for the log events.
|
static void |
warn(java.lang.String text)
Logs specified warning message (if warning logging is enabled).
|
public static long getCPtr(Log obj)
protected void finalize()
finalize
in class java.lang.Object
public void delete()
public static boolean isShowError()
public static void setShowError(boolean showError)
showError
- If true, then error messages will be written to the log.public static boolean isShowWarn()
public static void setShowWarn(boolean showWarn)
showWarn
- If true, then warning messages will be written to the log.public static boolean isShowInfo()
public static void setShowInfo(boolean showInfo)
showInfo
- If true, then info messages will be written to the log.public static boolean isShowDebug()
public static void setShowDebug(boolean showDebug)
showDebug
- If true, then debug messages will be written to the log.public static java.lang.String getTag()
public static void setTag(java.lang.String tag)
tag
- The tag to use in the log events.public static void fatal(java.lang.String text)
text
- The text to log.public static void error(java.lang.String text)
text
- The text to log.public static void warn(java.lang.String text)
text
- The text to log.public static void info(java.lang.String text)
text
- The text to log.public static void debug(java.lang.String text)
text
- The text to log.