安卓学习之三种输出日志信息方法

①日志优先级:ERROR>WARN>INFO>DEBUG>UERBOSE

②private static final String TAG="LogTest";

    String msg="liang";

  第一种:Log.i(TAG,msg);

             tag为TAG,级别是Info

  第二种:System.out.println(msg);

             tag默认为System.out,级别是Info

  第三种:System.err.println(msg);

             tag默认为System.err,级别是Warn

            verbose(冗长的,啰嗦的)--->debug(调试,出错)--->info(信息,information)--->warn--->error--->assert(判断提示),总共六种,上面三种形式级别是中间的3,4两种。

 

你可能感兴趣的:(安卓学习之三种输出日志信息方法)