@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;}}
文档反馈