-
Notifications
You must be signed in to change notification settings - Fork 4
Logging
Kristiyan Petrov edited this page Jan 18, 2019
·
4 revisions
Logging can be enabled via the BandyerSDK Builder object initialized in the Application.
It is not advised to log in release configuration for security reasons
if (!BuildConfig.DEBUG) return
builder.setLogger(new BandyerSDKLogger() {
@Override
public void verbose(@NonNull String tag, @NonNull String message) {
Log.v(tag, message);
}
@Override
public void debug(@NonNull String tag, @NonNull String message) {
Log.d(tag, message);
}
@Override
public void info(@NonNull String tag, @NonNull String message) {
Log.i(tag, message);
}
@Override
public void warn(@NonNull String tag, @NonNull String message) {
Log.w(tag, message);
}
@Override
public void error(@NonNull String tag, @NonNull String message) {
Log.e(tag, message);
}
});