嘿,在 Android 中是否可以从一个类中收集所有 Log.d 并继续附加它并将其保存到 SDCard 中?
例如 :
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*/
}