Artificial Intelligence Programming Lab(AIPLab) 討論區

Please login or register.

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

新聞:

[慶賀]恭喜亞大獲《泰晤士報》亞洲最佳大學排名第83名,國內排名第十名-20170201

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

admin

  • 管理員
  • Hero Member
  • *****
  • 文章: 1803
    • 檢視個人資料
[物件] 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