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 ) ;

Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)

© 2024 Falco Tech Blog Suffusion theme by Sayontan Sinha