public class Bugfender
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
Bugfender.IssueDialogCallback |
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 |
disableReflection(boolean disable)
Disable reflection when generation log lines.
|
static void |
e(java.lang.String tag,
java.lang.String message)
Error Bugfender log method.
|
static void |
enableCrashReporting()
Enable crash reporting tool functionality
|
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 |
f(java.lang.String tag,
java.lang.String message)
Default Bugfender log method.
|
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 java.lang.String |
getSessionIdentifier()
Get the session identifier
|
static void |
i(java.lang.String tag,
java.lang.String message)
Default Bugfender log method.
|
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 java.util.UUID |
sendIssue(java.lang.String title,
java.lang.String text)
Sends an issue
|
static void |
setApiUrl(java.lang.String url)
Allows to set a custom URL for the SDK.
|
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 size to store local log files.
|
static void |
showIssueDialog(android.app.Activity context,
java.lang.String title,
java.lang.String description,
java.lang.String cancelButtonText,
java.lang.String sendButtonText,
Bugfender.IssueDialogCallback listener) |
static void |
t(java.lang.String tag,
java.lang.String message)
Default Bugfender log method.
|
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)
By default, the limit is 5 MB.
bytes
- Maximum size in bytes. Range accepted is from 1 byte to 50 MB. If the value provided is outside this range, it will be set to 50 MB.public static void t(java.lang.String tag, java.lang.String message)
tag
- String with the tag.message
- String with the message.public static void i(java.lang.String tag, java.lang.String message)
tag
- String with the tag.message
- String with the message.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 f(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 java.util.UUID 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)
Logs and issues are synchronized continuously while forceEnabled is active.
enabled
- Whether logs and issues should be sent regardless of the Bugfender Console settings.public static void forceSendOnce()
Logs and issues are synchronized only once. After that, the logs are again sent according to the enabled flag in the Bugfender Console.
public static java.lang.String getDeviceIdentifier()
public static java.lang.String getSessionIdentifier()
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 setApiUrl(java.lang.String url)
url
- Custom url.public static void removeDeviceKey(java.lang.String key)
key
- key.public static void enableLogcatLogging()
public static void enableCrashReporting()
public static void disableReflection(boolean disable)
disable
- public static void enableUIEventLogging(android.app.Application application)
public static void showIssueDialog(android.app.Activity context, java.lang.String title, java.lang.String description, java.lang.String cancelButtonText, java.lang.String sendButtonText, Bugfender.IssueDialogCallback listener)