Sammle alle Log.d aus der Klasse und speichere sie auf der SDCard

Hey, ist es in Android möglich, alle Log.d aus einer Klasse zu sammeln und sie weiterhin anzuhängen und auf der SDCard zu speichern?

Zum Beispiel :

Class Android {

    private final static String TAG = "hello";

    public void abcd(){
    Log.d(TAG, "it went into abcd method");
    }

    public void efgh(){
    Log.d(TAG, "it went into efgh method");
    }

       /*Here collect all above LOGS and write to file in SDCard*/

}

Antworten auf die Frage(3)

Ihre Antwort auf die Frage