public static Log get() {
    	StackTraceElement[] sts = Thread.currentThread().getStackTrace();
    	if (Lang.isAndroid) {
    		for (int i = 0; i < sts.length; i++) {
				if (sts[i].getClassName().equals(Logs.class.getName())) {
					return adapter.getLogger(sts[i+1].getClassName());
				}
			}
    	}
    	return adapter.getLogger(sts[2].getClassName());
    }
public static Log get() {
    	StackTraceElement[] sts = Thread.currentThread().getStackTrace();
    	if (Lang.isAndroid) {
    		for (int i = 0; i < sts.length; i++) {
				if (sts[i].getClassName().equals(Logs.class.getName())) {
					return adapter.getLogger(sts[i+1].getClassName());
				}
			}
    	}
    	return adapter.getLogger(sts[2].getClassName());
    }
public static Log get ( ) { StackTraceElement [ ] sts = Thread . currentThread ( ) . getStackTrace ( ) ; if ( Lang . isAndroid ) { for ( int i = 0 ; i < sts . length ; i ++ ) { if ( sts [ i ] . getClassName ( ) . equals ( Logs . class . getName ( ) ) ) { return adapter . getLogger ( sts [ i + 1 ] . getClassName ( ) ) ; } } } return adapter . getLogger ( sts [ 2 ] . getClassName ( ) ) ; }
返回以调用者的类命名的Log,是获取Log对象最简单的方法!
返回以调用者的类命名的Log 是获取Log对象最简单的方法!