@ProxyService(proxy = LogProxy.class)public class LogProxyImpl extends LogProxy {@Overridepublic void log(int logLevel, String tag, String msg, Throwable t) {switch (logLevel) {case Log.DEBUG:if (t == null) {android.util.Log.d(tag, msg);} else {android.util.Log.d(tag, msg, t);}break;case Log.INFO:if (t == null) {android.util.Log.i(tag, msg);} else {android.util.Log.i(tag, msg, t);}break;case Log.WARN:if (t == null) {android.util.Log.w(tag, msg);} else {android.util.Log.w(tag, msg, t);}break;case Log.ERROR:if (t == null) {android.util.Log.e(tag, msg);} else {android.util.Log.e(tag, msg, t);}break;default:if (t == null) {android.util.Log.v(tag, msg);} else {android.util.Log.v(tag, msg, t);}break;}}@Overridepublic boolean isColorLevel() {return true;}}
Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback