当前位置: 首页 > news >正文

网站建设投标书服务方案范本企业网站托管外包方式

网站建设投标书服务方案范本,企业网站托管外包方式,为网站做电影花絮,百度站长工具app一 .logcat命令介绍 android log系统: logcat介绍 : logcat是android中的一个命令行工具#xff0c;可以用于得到程序的log信息. 二.C/Clogcat访问接口 Android系统中的C/C日志接口是通过宏来使用的。在system/core/include/android/log.h定义了日志的级别#xff1a; /…一 .logcat命令介绍 android log系统: logcat介绍 : logcat是android中的一个命令行工具可以用于得到程序的log信息. 二.C/Clogcat访问接口 Android系统中的C/C日志接口是通过宏来使用的。在system/core/include/android/log.h定义了日志的级别 /** Android log priority values, in ascending priority order.*/ typedef enum android_LogPriority {ANDROID_LOG_UNKNOWN 0,ANDROID_LOG_DEFAULT, /* only for SetMinPriority() */ANDROID_LOG_VERBOSE,ANDROID_LOG_DEBUG,ANDROID_LOG_INFO,ANDROID_LOG_WARN,ANDROID_LOG_ERROR,ANDROID_LOG_FATAL,ANDROID_LOG_SILENT, /* only for SetMinPriority(); must be last */ } android_LogPriority; 在system/core/include/cutils/log.h中定义了对应的宏如对应于ANDROID_LOG_VERBOSE的宏LOGV /** This is the local tag used for the following simplified* logging macros. You can change this preprocessor definition* before using the other macros to change the tag.*/ #ifndef LOG_TAG #define LOG_TAG NULL #endif/** Simplified macro to send a verbose log message using the current LOG_TAG.*/ #ifndef LOGV #if LOG_NDEBUG #define LOGV(...) ((void)0) #else #define LOGV(...) ((void)LOG(LOG_VERBOSE, LOG_TAG, __VA_ARGS__)) #endif #endif/** Basic log message macro.** Example:* LOG(LOG_WARN, NULL, Failed with error %d, errno);** The second argument may be NULL or to indicate the global tag.*/ #ifndef LOG #define LOG(priority, tag, ...) \LOG_PRI(ANDROID_##priority, tag, __VA_ARGS__) #endif/** Log macro that allows you to specify a number for priority.*/ #ifndef LOG_PRI #define LOG_PRI(priority, tag, ...) \android_printLog(priority, tag, __VA_ARGS__) #endif/** ** The stuff in the rest of this file should not be used directly.*/ #define android_printLog(prio, tag, fmt...) \__android_log_print(prio, tag, fmt) 因此如果要使用C/C日志接口只要定义自己的LOG_TAG宏和包含头文件system/core/include/cutils/log.h就可以了 #define LOG_TAG MY LOG TAG #include cutils/log.h 就可以了例如使用LOGV LOGV(This is the log printed by LOGV in android user space.); 三.Java logcat访问接口 Android系统在Frameworks层中定义了Log接口frameworks/base/core/java/android/util/Log.java ................................................public final class Log {................................................/*** Priority constant for the println method; use Log.v.*/public static final int VERBOSE 2;/*** Priority constant for the println method; use Log.d.*/public static final int DEBUG 3;/*** Priority constant for the println method; use Log.i.*/public static final int INFO 4;/*** Priority constant for the println method; use Log.w.*/public static final int WARN 5;/*** Priority constant for the println method; use Log.e.*/public static final int ERROR 6;/*** Priority constant for the println method.*/public static final int ASSERT 7;.....................................................public static int v(String tag, String msg) {return println_native(LOG_ID_MAIN, VERBOSE, tag, msg);}public static int v(String tag, String msg, Throwable tr) {return println_native(LOG_ID_MAIN, VERBOSE, tag, msg \n getStackTraceString(tr));}public static int d(String tag, String msg) {return println_native(LOG_ID_MAIN, DEBUG, tag, msg);}public static int d(String tag, String msg, Throwable tr) {return println_native(LOG_ID_MAIN, DEBUG, tag, msg \n getStackTraceString(tr));}public static int i(String tag, String msg) {return println_native(LOG_ID_MAIN, INFO, tag, msg);}public static int i(String tag, String msg, Throwable tr) {return println_native(LOG_ID_MAIN, INFO, tag, msg \n getStackTraceString(tr));}public static int w(String tag, String msg) {return println_native(LOG_ID_MAIN, WARN, tag, msg);}public static int w(String tag, String msg, Throwable tr) {return println_native(LOG_ID_MAIN, WARN, tag, msg \n getStackTraceString(tr));}public static int w(String tag, Throwable tr) {return println_native(LOG_ID_MAIN, WARN, tag, getStackTraceString(tr));}public static int e(String tag, String msg) {return println_native(LOG_ID_MAIN, ERROR, tag, msg);}public static int e(String tag, String msg, Throwable tr) {return println_native(LOG_ID_MAIN, ERROR, tag, msg \n getStackTraceString(tr));}................................................................../**hide */ public static native int println_native(int bufID,int priority, String tag, String msg); } 因此如果要使用Java日志接口只要在类中定义的LOG_TAG常量和引用android.util.Log就可以了 private static final String LOG_TAG MY_LOG_TAG; Log.i(LOG_TAG, This is the log printed by Log.i in android user space.); 四.logcat命令参数 参数 描述 -b buffer加载一个可使用的日志缓冲区供查看比如event和radio。默认值是main-c清除缓冲区中的全部日志并退出清除完后可以使用-g查看缓冲区-d将缓冲区的log转存到屏幕中然后退出-f filename将log输出到指定的文件中文件名.默认为标准输出stdout-g打印日志缓冲区的大小并退出-n count设置日志的最大数目count默认值是4需要和-r选项一起使用-r kbytes没kbytes时输出日志默认值是16需要和-f选项一起使用-s设置过滤器-v format设置输出格式的日志消息。默认是短暂的格式。支持的格式列表 //将缓冲区的log打印到屏幕并退出adb logcat -d//清除缓冲区logtestCase运行前可以先清除一下adb logcat -c//打印缓冲区大小并退出adb logcat -g//输出logadb logcat -f /data/local/tmp/log.txt -n 10 -r 1
http://www.hkea.cn/news/14354738/

相关文章:

  • 设计网站推荐分享到各大网站 代码
  • 胶南做网站会网站开发没学历
  • php 网站伪静态数据分析网官网
  • 网站建设过程论文重庆seo网站排名优化
  • 网站开发 前景初期网站开发费会计分录
  • 什么叫网站的空间感c net做的网站
  • 做网站的 深圳建设一个跟京东一样的网站
  • 广州番禺网站公司内蒙建设厅投诉网站
  • 白银市建设局网站中国建设网官网查询登录入口
  • 网站建设公司 知道万维科技网上商城采购
  • 临沂市建设工程监理公司网站编程猫官方网站入口
  • 魔兽7.2国内做插件网站市场营销的三大战略四大策略
  • 怎么合作做网站装修公司装饰
  • 北京注册网站做网站和做网页有什么区别
  • 潍坊住房与城市建设部网站网址之家
  • 做网站上的图片如何设定分辨率建设银行鹤岗分行网站
  • 上海出啥大事了今天seo推广的特点
  • 开发网站的流程是学校招办网站怎么做
  • 做网站公司不负责任怎么办建筑信息平台查询
  • 家里面的服务器可以做网站吗wordpress建站方便吗
  • 网站建设技术 翻译wordpress 修改数据库连接
  • 网站怎么做切换中英文网站底部图片
  • 云南手机网站建设zencart 网站老是跳转到原地址
  • 垂直电商网站有哪些产品宣传小视频制作
  • 网站建设 软件有哪些一个网站建设需要花多少钱
  • 南宁网站建公司外文网站做t检验分析
  • 常州商城网站制作公司购物网站页面设计步骤
  • 龙川县建设网站四川平台网站建设方案
  • 上海高端网站建设服中山蓝图科技网站建设
  • 免费网站设计培训班科技大学全国排名