public final class PAMSDKLogger
extends java.lang.Object
PAMSDKLogger logs the internal errors and other activities that occurs inside the SDK
All internal errors occurred on an entity will be reported to this class
By default the logs will be stored in current user working directory under sdk_logs folder
| Constructor and Description |
|---|
PAMSDKLogger() |
| Modifier and Type | Method and Description |
|---|---|
static void |
disableLogger()
Disable the PAMSDKLogger by calling this method
|
static void |
enableLogger()
Enable the PAMSDKLogger by calling this method
|
static java.util.logging.Logger |
getLogger() |
static void |
logInfo(java.lang.String message) |
static void |
setLogLocation(java.lang.String filePath)
Set the location for the log file, by default the log files will be under the current working directory
|
public static void enableLogger()
throws SDKOperationFailedException
SDKOperationFailedException - if the log file cannot be createdpublic static void setLogLocation(java.lang.String filePath)
throws SDKInvalidArgumentException,
SDKOperationFailedException
filePath - a valid file path to store the sdk logsSDKInvalidArgumentException - if the filePath is invalidSDKOperationFailedException - the reason along with this exception will be thrown if sdk is unable to set the log locationpublic static void disableLogger()
public static java.util.logging.Logger getLogger()
public static void logInfo(java.lang.String message)