9月 072013
static public void i( String message, Object ... obj) {
String methodName ="";
try {
methodName = Thread.currentThread().getStackTrace()[3].getMethodName();
} catch( Exception e ){
Log.e("Debug", e.getMessage());
}
if( DEBUG_WRITE == true ) {
Log.i(methodName, String.format( message, obj) );
}
put( message );
}
呼び出し
Log2.i("x:%d y%d", 100,200 ) ;