INNER CODE UNIT · Java
withTag
aritraroy/UltimateAndroidReference · others/Logger.java:10
public static Logger withTag(String tag) {
return new Logger(tag);
}
private Logger(String TAG) {
this.TAG = TAG;
this.priority = Log.DEBUG;
}
public Logger log(String message) {
if (BuildConfig.DEBUG) {
Log.println(priority, TAG, message);
}
return this;
}
public void withCause(Exception cause) {
if (BuildConfig.DEBUG) {