①日誌優先級:ERROR>WARN>INFO>DEBUG>UERBOSEspa
②private static final String TAG="LogTest";debug
String msg="liang";調試
第一種:Log.i(TAG,msg);日誌
tag爲TAG,級別是Infoorm
第二種:System.out.println(msg);io
tag默認爲System.out,級別是Infoform
第三種:System.err.println(msg); bug
tag默認爲System.err,級別是Warnerror
verbose(冗長的,囉嗦的)--->debug(調試,出錯)--->info(信息,information)--->warn--->error--->assert(判斷提示),總共六種,上面三種形式級別是中間的3,4兩種。static