| Modifier and Type | Field and Description |
|---|---|
static String |
TYPE_ASSERT |
static String |
TYPE_CRITICAL |
static String |
TYPE_DEBUG |
static String |
TYPE_ERROR |
static String |
TYPE_EXCEPTION |
static String |
TYPE_FATAL |
static String |
TYPE_FEEDBACK |
static String |
TYPE_INFO |
static String |
TYPE_UNCAUGHT |
static String |
TYPE_WARNING |
| Modifier and Type | Method and Description |
|---|---|
static void |
addExtra(IExtra extra)
Enables creating extensions for data collected during events.
|
static void |
assertion(boolean condition,
String text)
Send the assertion text to the server if the condition fails.
|
static void |
assertion(boolean condition,
String text,
org.json.JSONObject opaque)
Send the assertion text to the server if the condition fails.
|
static void |
assertion(String text)
Send the assertion text to the server.
|
static void |
assertion(String text,
org.json.JSONObject opaque)
Send the assertion text to the server.
|
static void |
capture(String type,
String text)
Send the text to the server.
|
static void |
capture(String type,
String text,
org.json.JSONObject opaque)
Send the text to the server.
|
static void |
capture(String type,
String text,
String opaque)
Send the text to the server.
|
static void |
capture(String type,
Throwable throwable)
Send the throwable to the server.
|
static void |
capture(String type,
Throwable throwable,
org.json.JSONObject opaque)
Send the throwable to the server.
|
static void |
capture(String type,
Throwable throwable,
String opaque)
Send the throwable to the server.
|
protected static void |
capture(Throwable throwable) |
static void |
critical(Exception exception)
Send the critical exception to the server.
|
static void |
critical(Exception exception,
org.json.JSONObject opaque)
Send the critical exception to the server.
|
static void |
critical(String text)
Send the critical text to the server.
|
static void |
critical(String text,
org.json.JSONObject opaque)
Send the critical text to the server.
|
static void |
debug(Exception exception)
Send the debug exception to the server.
|
static void |
debug(Exception exception,
org.json.JSONObject opaque)
Send the debug exception to the server.
|
static void |
debug(String text)
Send the debug text to the server.
|
static void |
debug(String text,
org.json.JSONObject opaque)
Send the debug text to the server.
|
static void |
error(Exception exception)
Send the error exception to the server.
|
static void |
error(Exception exception,
org.json.JSONObject opaque)
Send the error exception to the server.
|
static void |
error(String text)
Send the error text to the server.
|
static void |
error(String text,
org.json.JSONObject opaque)
Send the error text to the server.
|
static void |
exception(Exception exception)
Typically used within the catch of a try/catch statement.
|
static void |
exception(Exception exception,
org.json.JSONObject opaque)
Typically used within the catch of a try/catch statement.
|
static void |
fatal(Exception exception)
Send the fatal exception to the server.
|
static void |
fatal(Exception exception,
org.json.JSONObject opaque)
Send the fatal exception to the server.
|
static void |
fatal(String text)
Send the fatal text to the server.
|
static void |
fatal(String text,
org.json.JSONObject opaque)
Send the fatal text to the server.
|
static void |
feedback(String text)
Send the feedback text to the server.
|
static void |
feedback(String text,
org.json.JSONObject opaque)
Send the feedback text to the server.
|
static void |
info(Exception exception)
Send the info exception to the server.
|
static void |
info(Exception exception,
org.json.JSONObject opaque)
Send the info exception to the server.
|
static void |
info(String text)
Send the info text to the server.
|
static void |
info(String text,
org.json.JSONObject opaque)
Send the info text to the server.
|
static void |
initialize()
Initializes the library using konverge.json located in the root of the classes folder.
|
static void |
initialize(String apiKey,
String version)
Initializes the library with the developer's API credentials.
|
static void |
initialize(String server,
String apiKey,
String version,
boolean useSSL)
This initializes the Konverge library with the developer's credentials for storing items.
|
static boolean |
isInitialized() |
static boolean |
isLocalLogEnabled() |
protected static void |
preprocess(String type,
Throwable throwable,
org.json.JSONObject opaque) |
protected static void |
preprocess(String type,
Throwable throwable,
String opaque) |
protected static void |
process(String type,
String text,
String stack,
org.json.JSONObject opaque) |
protected static void |
process(String type,
String text,
String stack,
String opaque) |
void |
run() |
static void |
setDebugEnabled(boolean enabled)
This will turn on/off printing stack traces when the Konverge SDK itself has an exception.
|
static void |
setLocalLogEnabled(boolean enabled)
This will turn on/off logging to the local system log.
|
static void |
setTextStackEnabled(boolean enabled)
This will turn on/off the stack traces that are appended to text based events.
|
static void |
trace(String category,
String message)
Provides an online and centralized location for trace logging which is only stored temporarily.
|
static void |
uncaught(Throwable throwable) |
static void |
uninitialize()
Uninitialize the library.
|
static void |
warning(Exception exception)
Send the warning exception to the server.
|
static void |
warning(Exception exception,
org.json.JSONObject opaque)
Send the warning exception to the server.
|
static void |
warning(String text)
Send the warning text to the server.
|
static void |
warning(String text,
org.json.JSONObject opaque)
Send the warning text to the server.
|
public static final String TYPE_ASSERT
public static final String TYPE_CRITICAL
public static final String TYPE_DEBUG
public static final String TYPE_ERROR
public static final String TYPE_EXCEPTION
public static final String TYPE_FATAL
public static final String TYPE_FEEDBACK
public static final String TYPE_INFO
public static final String TYPE_UNCAUGHT
public static final String TYPE_WARNING
public static void addExtra(IExtra extra)
extra - An extra provider.public static void assertion(boolean condition,
String text)
condition - The assertion is captured only if the condition fails.text - The text to log.public static void assertion(boolean condition,
String text,
org.json.JSONObject opaque)
condition - The assertion is captured only if the condition fails.text - The text to log.opaque - A JSON formatted object containing developer provided data.public static void assertion(String text)
text - The text to log.public static void assertion(String text, org.json.JSONObject opaque)
text - The text to log.opaque - A JSON formatted object containing developer provided data.public static void capture(String type, String text)
type - A name used to categorize this event.text - The text to log.public static void capture(String type, String text, org.json.JSONObject opaque)
type - A name used to categorize this event.text - The text to log.opaque - A JSON formatted object containing developer provided data.public static void capture(String type, String text, String opaque)
type - A name used to categorize this event.text - The text to log.opaque - A JSON formatted object containing developer provided data.public static void capture(String type, Throwable throwable)
type - A name used to categorize this event.throwable - The throwable object to capture.public static void capture(String type, Throwable throwable, org.json.JSONObject opaque)
type - A name used to categorize this event.throwable - The throwable object to capture.opaque - A JSON formatted object containing developer provided data.public static void capture(String type, Throwable throwable, String opaque)
type - A name used to categorize this event.throwable - The throwable object to capture.opaque - A JSON formatted object containing developer provided data.protected static void capture(Throwable throwable)
public static void critical(Exception exception)
exception - The exception object to capture.public static void critical(Exception exception, org.json.JSONObject opaque)
exception - The exception object to capture.opaque - A JSON formatted object containing developer provided data.public static void critical(String text)
text - The text to log.public static void critical(String text, org.json.JSONObject opaque)
text - The text to log.opaque - A JSON formatted object containing developer provided data.public static void debug(Exception exception)
exception - The exception object to capture.public static void debug(Exception exception, org.json.JSONObject opaque)
exception - The exception object to capture.opaque - A JSON formatted object containing developer provided data.public static void debug(String text)
text - The text to log.public static void debug(String text, org.json.JSONObject opaque)
text - The text to log.opaque - A JSON formatted object containing developer provided data.public static void error(Exception exception)
exception - The exception object to capture.public static void error(Exception exception, org.json.JSONObject opaque)
exception - The exception object to capture.opaque - A JSON formatted object containing developer provided data.public static void error(String text)
text - The text to log.public static void error(String text, org.json.JSONObject opaque)
text - The text to log.opaque - A JSON formatted object containing developer provided data.public static void exception(Exception exception)
exception - The exception object to capture.public static void exception(Exception exception, org.json.JSONObject opaque)
exception - The exception object to capture.opaque - A JSON formatted object containing developer provided data.public static void fatal(Exception exception)
exception - The exception object to capture.public static void fatal(Exception exception, org.json.JSONObject opaque)
exception - The exception object to capture.opaque - A JSON formatted object containing developer provided data.public static void fatal(String text)
text - The text to log.public static void fatal(String text, org.json.JSONObject opaque)
text - The text to log.opaque - A JSON formatted object containing developer provided data.public static void feedback(String text)
text - The feedback text.public static void feedback(String text, org.json.JSONObject opaque)
text - The feedback text.opaque - A JSON formatted object containing developer provided data.public static void info(Exception exception)
exception - The exception object to capture.public static void info(Exception exception, org.json.JSONObject opaque)
exception - The exception object to capture.opaque - A JSON formatted object containing developer provided data.public static void info(String text)
text - The text to log.public static void info(String text, org.json.JSONObject opaque)
text - The text to log.opaque - A JSON formatted object containing developer provided data.public static void initialize()
public static void initialize(String apiKey, String version)
apiKey - The developer's API key.version - The applications version string.public static void initialize(String server, String apiKey, String version, boolean useSSL)
server - The server to send data to.apiKey - The developer's API key.version - The applications version string.useSSL - Enable the use of SSL.public static boolean isInitialized()
public static boolean isLocalLogEnabled()
protected static void preprocess(String type, Throwable throwable, org.json.JSONObject opaque)
protected static void process(String type, String text, String stack, org.json.JSONObject opaque)
public static void setDebugEnabled(boolean enabled)
enabled - When set to true Konverge will print the stack trace when the error is generated by Konverge itself.public static void setLocalLogEnabled(boolean enabled)
enabled - When set to true additional debug info will be shown in the log. For example when an exception is captured, the exception call
stack is logged.public static void setTextStackEnabled(boolean enabled)
enabled - When set to true a stack trace will be appended to the text based event.public static void trace(String category, String message)
category - A name used to categorize the messages.message - The message to log temporarily.public static void uncaught(Throwable throwable)
public static void uninitialize()
public static void warning(Exception exception)
exception - The exception object to capture.public static void warning(Exception exception, org.json.JSONObject opaque)
exception - The exception object to capture.opaque - A JSON formatted object containing developer provided data.public static void warning(String text)
text - The text to log.public static void warning(String text, org.json.JSONObject opaque)
text - The text to log.opaque - A JSON formatted object containing developer provided data.Copyright © 2009–2014 Konverge.io. All rights reserved.