public class Bugfender
extends java.lang.Object
Constructor and Description |
---|
Bugfender() |
Modifier and Type | Method and Description |
---|---|
static void |
d(java.lang.String tag,
java.lang.String message)
Default Bugfender log method.
|
static void |
e(java.lang.String tag,
java.lang.String message)
Error Bugfender log method.
|
static void |
enableLogcatLogging()
Logs all logs written via Logcat.
|
static void |
enableUIEventLogging(android.app.Application application)
Logs all actions performed and screen changes in the application, such as button touches, etc...
|
static void |
forceSendOnce()
Synchronizes all logs and issues with the server once, regardless if this device is enabled or not.
|
static java.lang.String |
getDeviceIdentifier()
Get the device identifier generated.
|
static void |
init(android.content.Context context,
java.lang.String applicationToken,
boolean debug)
Initialize the Bugfender SDK with a specific application token.
|
static void |
log(int lineNumber,
java.lang.String method,
java.lang.String file,
LogLevel logLevel,
java.lang.String tag,
java.lang.String message)
Bugfender interface for logging, which takes a simple string as log message.
|
static void |
removeDeviceKey(java.lang.String key)
Remove a device detail.
|
static void |
sendIssue(java.lang.String title,
java.lang.String text)
Sends an issue
|
static void |
setDeviceBoolean(java.lang.String key,
boolean value)
Sets a device detail with boolean type.
|
static void |
setDeviceFloat(java.lang.String key,
java.lang.Float value)
Sets a device detail with double type.
|
static void |
setDeviceInteger(java.lang.String key,
java.lang.Integer value)
Sets a device detail with integer type.
|
static void |
setDeviceString(java.lang.String key,
java.lang.String value)
Sets a device detail with string type.
|
static void |
setForceEnabled(boolean enabled)
Synchronizes all logs and issues with the server all the time, regardless if this device is enabled or not.
|
static void |
setMaximumLocalStorageSize(long bytes)
Set the maximum space available to store local logs.
|
static void |
w(java.lang.String tag,
java.lang.String message)
Warning Bugfender log method.
|
public static void init(android.content.Context context, java.lang.String applicationToken, boolean debug)
context
- Application context.applicationToken
- The application token.debug
- Boolean that represent if bugfender sdk should print the logs in console.public static void setMaximumLocalStorageSize(long bytes)
bytes
- Maximum size.public static void d(java.lang.String tag, java.lang.String message)
tag
- String with the tag.message
- String with the message.public static void w(java.lang.String tag, java.lang.String message)
tag
- String with the tag.message
- String with the message.public static void e(java.lang.String tag, java.lang.String message)
tag
- String with the tag.message
- String with the message.public static void log(int lineNumber, java.lang.String method, java.lang.String file, LogLevel logLevel, java.lang.String tag, java.lang.String message)
lineNumber
- The line number of the log.method
- The method where the log has happened.file
- The file where the log has happened.logLevel
- Log level.tag
- Tag to be applied to the log line.message
- Message to be logged. The message will be logged verbatim, no interpretation will be performed.public static void sendIssue(java.lang.String title, java.lang.String text)
title
- Short description of the issue.text
- Full details of the issue. Markdown format is accepted.public static void setForceEnabled(boolean enabled)
enabled
- Whether logs and issues should be sent regardless of the Bugfender Console settings.public static void forceSendOnce()
public static java.lang.String getDeviceIdentifier()
public static void setDeviceBoolean(java.lang.String key, boolean value)
key
- key.value
- A boolean value.public static void setDeviceString(java.lang.String key, java.lang.String value)
key
- key.value
- A string value.public static void setDeviceInteger(java.lang.String key, java.lang.Integer value)
key
- key.value
- A integer value.public static void setDeviceFloat(java.lang.String key, java.lang.Float value)
key
- key.value
- A double value.public static void removeDeviceKey(java.lang.String key)
key
- key.public static void enableLogcatLogging()
public static void enableUIEventLogging(android.app.Application application)