2015-11-05 35 views

回答

1

Android已經內置logging功能可以使用,Android.Util.Log

string tag = "myapp"; 

Log.Info (tag, "this is an info message"); 
Log.Warn (tag, "this is a warning message"); 
Log.Error (tag, "this is an error message"); 
+1

當你想在訪問它們這將記錄到可能與較新的日誌行覆蓋旋轉logcat的緩衝區晚點。它也不會登錄到SD卡。 – mvandillen

相關問題