Artificial Intelligence Programming Lab(AIPLab) 討論區

Please login or register.

請輸入帳號, 密碼以及預計登入時間

新聞:

[開學]106學年第1學期的課程看版開張了 歡迎同學問問題-20170917

作者 主題: [物件] Log  (閱讀 1853 次)

admin

  • 管理員
  • Hero Member
  • *****
  • 文章: 1751
    • 檢視個人資料
[物件] Log
« 於: 九月 26, 2014, 07:16:01 am »
http://developer.android.com/reference/android/util/Log.html

Tip: A good convention is to declare a TAG constant in your class:
private static final String TAG = "MyActivity";

Log.v(TAG, "index=" + i);

int ASSERT Priority constant for the println method.
int DEBUG Priority constant for the println method; use Log.d.
int ERROR Priority constant for the println method; use Log.e.
int INFO Priority constant for the println method; use Log.i.
int VERBOSE Priority constant for the println method; use Log.v.
int WARN Priority constant for the println method; use Log.w.
已記錄
 

SimplePortal Classic 2.0.5