public class ZendriveDebugLogger extends Object
Constructor and Description |
---|
ZendriveDebugLogger() |
Modifier and Type | Method and Description |
---|---|
static void |
debug(String message,
Object... args)
Captures the debug level logs.
|
static void |
error(String message,
Object... args)
Captures the error level logs.
|
static void |
info(String message,
Object... args)
Captures the info level logs.
|
static boolean |
initialize(Context context)
Initializes the debug logger.
|
static void |
saveDebugDataWithKeys(JSONObject keyObject,
JSONObject valueObject)
Saves the Uikit analytics data to debug data.
|
static void |
verbose(String message,
Object... args)
Captures the verbose level logs.
|
static void |
warn(String message,
Object... args)
Captures the warn level logs.
|
public static boolean initialize(Context context)
In case the Zendrive SDK is not setup, or the logger is disabled for the application, this method shall return false, and the initialization shall fail.
Multiple calls to this method are idempotent.
context
- Context of the enclosing applicationpublic static void debug(String message, Object... args)
Example usage:
ZendriveDebugLogger.debug("Test Log %s", appName)
OR
ZendriveDebugLogger.debug("Test Log")
message
- Log stringargs
- Arguments required for string formattingpublic static void info(String message, Object... args)
Example usage:
ZendriveDebugLogger.info("Test Log %s", appName)
OR
ZendriveDebugLogger.info("Test Log")
message
- Log stringargs
- Arguments required for string formattingpublic static void error(String message, Object... args)
Example usage:
ZendriveDebugLogger.error("Test Log %s", appName)
OR
ZendriveDebugLogger.error("Test Log")
message
- Log stringargs
- Arguments required for string formattingpublic static void warn(String message, Object... args)
Example usage:
ZendriveDebugLogger.warn("Test Log %s", appName)
OR
ZendriveDebugLogger.warn("Test Log")
message
- Log stringargs
- Arguments required for string formattingpublic static void verbose(String message, Object... args)
Example usage:
ZendriveDebugLogger.verbose("Test Log %s", appName)
OR
ZendriveDebugLogger.verbose("Test Log")
message
- Log stringargs
- Arguments required for string formattingpublic static void saveDebugDataWithKeys(@NonNull JSONObject keyObject, @NonNull JSONObject valueObject)
keyObject
- this argument cannot be nullvalueObject
- this argument cannot be null