
com.path.android.jobqueue.log.JqLog Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of android-priority-jobqueue Show documentation
Show all versions of android-priority-jobqueue Show documentation
a Job Queue specifically written for Android to easily schedule jobs (tasks) that run in the background, improving UX and application stability.
package com.path.android.jobqueue.log;
/**
* Wrapper around {@link CustomLogger}. by default, logs to nowhere
*/
public class JqLog {
private static CustomLogger customLogger = new CustomLogger() {
@Override
public boolean isDebugEnabled() {
return false;
}
@Override
public void d(String text, Object... args) {
//void
}
@Override
public void e(Throwable t, String text, Object... args) {
//void
}
@Override
public void e(String text, Object... args) {
//void
}
};
public static void setCustomLogger(CustomLogger customLogger) {
JqLog.customLogger = customLogger;
}
public static boolean isDebugEnabled() {
return customLogger.isDebugEnabled();
}
public static void d(String text, Object... args) {
customLogger.d(text, args);
}
public static void e(Throwable t, String text, Object... args) {
customLogger.e(t, text, args);
}
public static void e(String text, Object... args) {
customLogger.e(text, args);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy