java.lang.Object | |
↳ | com.carto.utils.Log |
A diagnostic log for various SDK events.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
static void |
debug(String message)
Logs specified debug message (if debug logging is enabled).
| ||||||||||
synchronized void | delete() | ||||||||||
static void |
error(String message)
Logs specified error message (if error logging is enabled).
| ||||||||||
static void |
fatal(String message)
Logs specified fatal error message and terminates.
| ||||||||||
static LogEventListener |
getLogEventListener()
Returns the current log listener.
| ||||||||||
static String |
getTag()
Returns the tag for the log events.
| ||||||||||
static void |
info(String message)
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 |
setLogEventListener(LogEventListener listener)
Sets the log listener that can be used to intercept log messages.
| ||||||||||
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(String tag)
Sets the tag for the log events.
| ||||||||||
static void |
warn(String message)
Logs specified warning message (if warning logging is enabled).
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Logs specified debug message (if debug logging is enabled).
message | The message to log. |
---|
Logs specified error message (if error logging is enabled).
message | The message to log. |
---|
Logs specified fatal error message and terminates.
message | The message to log. |
---|
Returns the current log listener.
Returns the tag for the log events.
Logs specified info message (if info logging is enabled).
message | The message to log. |
---|
Returns the state of internal debug message logging.
Returns the state of error logging.
Returns the state of general info logging.
Returns the state of warning logging.
Sets the log listener that can be used to intercept log messages.
listener | The log event listener. |
---|
Enables or disables writing internal debug messages to the log.
showDebug | If true, then debug messages will be written to the log. |
---|
Enables or disables writing error messages to the log.
showError | If true, then error messages will be written to the log. |
---|
Enables or disables writing info messages to the log.
showInfo | If true, then info messages will be written to the log. |
---|
Enables or disables writing warning messages to the log.
showWarn | If true, then warning messages will be written to the log. |
---|
Sets the tag for the log events. The tag will be visible in the log and log messages can be filtered by the tag.
tag | The tag to use in the log events. |
---|
Logs specified warning message (if warning logging is enabled).
message | The message to log. |
---|