|
| static boolean | initialize (Application application) |
| |
| static boolean | initialize (Application application, int queueSize) |
| |
| static void | updateQueueSize (int queueSize) |
| |
| static void | setAppContext (Context context) |
| |
| static void | configureDefaults (String appName, String appVersion) |
| |
|
static boolean | isInitialized () |
| |
|
static boolean | shouldPersistLogs () |
| |
| static void | flushLogs () |
| |
| static int | v (String tag, String msg) |
| |
| static int | v (String tag, String msg, Throwable tr) |
| |
| static int | d (String tag, String msg) |
| |
| static int | d (String tag, String msg, Throwable tr) |
| |
| static int | i (String tag, String msg) |
| |
| static int | i (String tag, String msg, Throwable tr) |
| |
| static int | w (String tag, String msg) |
| |
| static int | w (String tag, String msg, Throwable tr) |
| |
| static int | w (String tag, Throwable tr) |
| |
| static int | e (String tag, String msg) |
| |
| static int | e (String tag, String msg, Throwable tr) |
| |
| static int | wtf (String tag, String msg) |
| |
| static int | wtf (String tag, Throwable tr) |
| |
| static int | wtf (String tag, String msg, Throwable tr) |
| |
|
static int | expandLog (String tag, String msg) |
| |
| static int | expandLog (int logLevel, String tag, String msg, Throwable tr) |
| |
| static boolean | isLoggable (String tag, int level) |
| |
| static String | getStackTraceString (Throwable tr) |
| |
| static int | println (int priority, String tag, String msg) |
| |
|
static int | println (int priority, String tag, String msg, Throwable tr) |
| |
| static void | registerAdditionalDefaultExceptionHandler (Thread.UncaughtExceptionHandler exceptionHandler) |
| |
| static void | unregisterAdditionalDefaultExceptionHandler (Thread.UncaughtExceptionHandler exceptionHandler) |
| |
|
|
static final int | SMALL_STORE_SIZE = 10 |
| |
|
static final String | APP_LOG_INITIALIZED_MESSAGE = "Log Initialized" |
| |
|
static final int | APP_IGNORED = 99 |
| |
|
static final int | APP_DEBUG = 107 |
| |
|
static final int | APP_INFO = 106 |
| |
|
static final int | APP_NOTICE = 105 |
| |
|
static final int | APP_WARNING = 104 |
| |
|
static final int | APP_ERROR = 103 |
| |
|
static final int | APP_CRITICAL = 102 |
| |
|
static final int | APP_ALERT = 101 |
| |
|
static final int | APP_EMERGENCY = 100 |
| |
| static final ThreadLocal< DateFormat > | LOG_DATETIME_FORMAT |
| |
|
static final int | PROVIDER_VERSION = 3 |
| |
|
static final String | PROVIDER_NAME = "com.verifone.utilities" |
| |
|
static final String | URL = "content://" + PROVIDER_NAME + "/logs" |
| |
|
static final Uri | CONTENT_URI = Uri.parse(URL) |
| |
|
static final Uri | INSERT_SUCCESS_URI = Uri.parse(URL + "/success") |
| |
|
static final Uri | INSERT_FAILED_URI = Uri.parse(URL + "/failed") |
| |
| static final String | LOGS_MIME_TYPE |
| |
| static final String | LOG_MIME_TYPE |
| |
|
static final String | COL_APP_NAME = "appName" |
| |
|
static final String | COL_APP_VERSION = "appVersion" |
| |
|
static final String | COL_PRIORITY = "priority" |
| |
|
static final String | COL_MESSAGE_TYPE = "messageType" |
| |
|
static final String | COL_TAG = "tag" |
| |
|
static final String | COL_MESSAGE = "message" |
| |
|
static final String | COL_TIME = "time" |
| |
|
static final String | STUB_COL_COUNT = "count" |
| |
Writes logs to the cloud aggregation service and to the standard android.util.Log. Provides the contract for the Log Provider service to store logs for upload to the cloud.
When writing messages to this Log, it queues the message for upload to the log aggregation service in the Developer Portal, and then prints the log using the standard android.util.Log class. Logs are persisted in the queue, so in case of a crash, the logs are still able to be uploaded on recovery.
Commerce Platform App Log Levels:
-
7 (debug): APP_DEBUG
-
6 (informational): APP_INFO
-
5 (notice): APP_ NOTICE
-
4 (warning): APP_WARNING
-
3 (error): APP_ERROR
-
2 (critical): APP_CRITICAL
-
1 (alert): APP_ALERT
-
0 (emergency): APP_EMERGENCY
Commerce Platform to Android Log Level Mapping:
-
APP_DEBUG - DEBUG
-
APP_INFO - INFO
-
APP_NOTICE - INFO
-
APP_WARNING - WARN
-
APP_ERROR - ERROR
-
APP_CRITICAL - ERROR
-
APP_ALERT - ASSERT
-
APP_EMERGENCY - ASSERT
Android Log Level to Commerce Platform Level Mapping:
-
VERBOSE - Ignored.
-
DEBUG - APP_DEBUG
-
INFO - APP_INFO
-
WARN - APP_WARNING
-
ERROR - APP_ERROR
-
ASSERT - APP_CRITICAL
{
- See also
- Android Log documentation at https://developer.android.com/reference/android/util/Log.html for details on the common methods.}
Definition at line 68 of file Log.java.