public final class PreferencesLogging extends Object
Custom Logger may be specified via setLogger(Logger) which may be used to control
logging outputs of the library.
Default logger used by this class has specified Log.ASSERT log level which means the the
library by default does not print out any logs.
| Modifier and Type | Method and Description |
|---|---|
static void |
d(String tag,
String message)
Delegates to
Logger.d(String, String). |
static void |
d(String tag,
String message,
Throwable throwable)
Delegates to
Logger.d(String, String, Throwable). |
static void |
e(String tag,
String message)
Delegates to
Logger.e(String, String). |
static void |
e(String tag,
String message,
Throwable throwable)
Delegates to
Logger.e(String, String, Throwable). |
static Logger |
getLogger()
Returns the logger used by this logging class.
|
static void |
i(String tag,
String message)
Delegates to
Logger.i(String, String). |
static void |
i(String tag,
String message,
Throwable throwable)
Delegates to
Logger.i(String, String, Throwable). |
static void |
setLogger(Logger logger)
Sets a logger to be used by this logging class to print out logs into console.
|
static void |
v(String tag,
String message)
Delegates to
Logger.v(String, String). |
static void |
v(String tag,
String message,
Throwable throwable)
Delegates to
Logger.v(String, String, Throwable). |
static void |
w(String tag,
String message)
Delegates to
Logger.w(String, String). |
static void |
w(String tag,
String message,
Throwable throwable)
Delegates to
Logger.w(String, String, Throwable). |
static void |
w(String tag,
Throwable throwable)
Delegates to
Logger.w(String, Throwable). |
static void |
wtf(String tag,
String message)
Delegates to
Logger.wtf(String, String). |
static void |
wtf(String tag,
String message,
Throwable throwable)
Delegates to
Logger.wtf(String, String, Throwable). |
static void |
wtf(String tag,
Throwable throwable)
Delegates to
Logger.wtf(String, Throwable). |
public static void setLogger(@Nullable
Logger logger)
logger - The desired logger. May by null to use default logger.getLogger()@NonNull public static Logger getLogger()
setLogger(Logger)public static void d(@NonNull
String tag,
@NonNull
String message)
Logger.d(String, String).public static void d(@NonNull
String tag,
@NonNull
String message,
@Nullable
Throwable throwable)
Logger.d(String, String, Throwable).public static void v(@NonNull
String tag,
@NonNull
String message)
Logger.v(String, String).public static void v(@NonNull
String tag,
@NonNull
String message,
@Nullable
Throwable throwable)
Logger.v(String, String, Throwable).public static void i(@NonNull
String tag,
@NonNull
String message)
Logger.i(String, String).public static void i(@NonNull
String tag,
@NonNull
String message,
@Nullable
Throwable throwable)
Logger.i(String, String, Throwable).public static void w(@NonNull
String tag,
@NonNull
String message)
Logger.w(String, String).public static void w(@NonNull
String tag,
@Nullable
Throwable throwable)
Logger.w(String, Throwable).public static void w(@NonNull
String tag,
@NonNull
String message,
@Nullable
Throwable throwable)
Logger.w(String, String, Throwable).public static void e(@NonNull
String tag,
@NonNull
String message)
Logger.e(String, String).public static void e(@NonNull
String tag,
@NonNull
String message,
@Nullable
Throwable throwable)
Logger.e(String, String, Throwable).public static void wtf(@NonNull
String tag,
@NonNull
String message)
Logger.wtf(String, String).public static void wtf(@NonNull
String tag,
@Nullable
Throwable throwable)
Logger.wtf(String, Throwable).public static void wtf(@NonNull
String tag,
@NonNull
String message,
@Nullable
Throwable throwable)
Logger.wtf(String, String, Throwable).