|
].getMethodName())
.append(COLON)
.append(e.getMessage())
.toString());
}
public static void w(Throwable e,String msg) {
if (isShowLog)
w(TAG,e,msg);
}
public static void w(String tag,Throwable e,String msg) {
if (isShowLog)
Log.w(tag,
new StringBuilder()
.append(e.getStackTrace()[0].getLineNumber())
.append(COLON)
.append(e.getStackTrace()[0].getClassName())
.append(ARROW)
.append(e.getStackTrace()[0].getMethodName())
.append(COLON)
.append(msg)
.toString());
}
public static void w(String msg) {
if (isShowLog)
w(TAG, msg);
}
public static void w(String tag, String msg) {
if (isShowLog)
Log.w(tag, msg);
}
public static void w(Class
cls, String msg) {
if (isShowLog)
w(TAG,cls,msg);
}
public static void w(String tag,Class
cls,String msg) {
if (isShowLog)
Log.w(tag,
new StringBuilder()
.append(cls.getSimpleName())
.append(COLON)
.append(msg)
.toString());
}
public static void w(Class
cls, String line, String msg) {
if (isShowLog)
w(TAG,cls,line,msg);
}
public static void w(String tag,Class
cls, String line, String msg) {
if (isShowLog)
Log.w(tag,
new StringBuilder()
.append(line).append(COLON)
.append(cls.getSimpleName())
.append(COLON)
.append(msg)
.toString());
}
//-----------------------------------Log.e
/**
* Log.e
* @param e
*/
public static void e(Throwable e) {
if (isShowLog)
e(TAG,e);
}
public static void e(String tag,Throwable e) {
if (isShowLog)
Log.e(tag,
new StringBuilder()
.append(e.getStackTrace()[0].getLineNumber())
.append(COLON)
.append(e.getStackTrace()[0].getClassName())
.append(ARROW)
.append(e.getStackTrace()[0].getMethodName())
.append(COLON)
.append(e.getMessage())
.toString());
}
public static void e(Throwable e,String msg) {
if (isShowLog)
e(TAG,e,msg);
}
public static void e(String tag,Throwable e,String msg) {
if (isShowLog)
Log.e(tag,
new StringBuilder()
.append(e.getStackTrace()[0].getLineNumber())
.append(COLON)
.append(e.getStackTrace()[0].getClassName())
.append(ARROW)
.append(e.getStackTrace()[0].getMethodName())
.append(COLON)
.append(msg)
.toString());
}
public static void e(String msg) {
if (isShowLog)
e(TAG, msg);
}
public static void e(String tag, String msg) {
if (isShowLog)
Log.e(tag, msg);
}
public static void e(Class
cls, String msg) {
if (isShowLog)
e(TAG,cls,msg);
}
public static void e(String tag,Class
cls,String msg) {
if (isShowLog)
Log.e(tag,
new StringBuilder()
.append(cls.getSimpleName())
.append(COLON)
.append(msg)
.toString());
}
public static void e(Class
cls, String line, String msg) {
if (isShowLog)
e(TAG,cls,line,msg);
}
public static void e(String tag,Class
cls, String line, String msg) {
if (isShowLog)
Log.w(tag,
new StringBuilder()
.append(line).append(COLON)
.append(cls.getSimple |