|
|
EDA365欢迎您登录!
您需要 登录 才可以下载或查看,没有帐号?注册
x
Linux下获取XML调试信息等级 2 [6 n5 K7 L/ I6 N
5 @, |+ [. q' u* j
- #ifndef _LOG_H_
- #define _LOG_H_
-
- #include <stdio.h>
- #include <string.h>
- #include <unistd.h>
- #include <assert.h>
-
- #include <libxml/parser.h>
- #include <libxml/tree.h>
- #include <libxml/xmlmemory.h>
- #include <libxml/xpath.h>
-
- #define CONF_FILE_NAME "/opt/can_book.xml"
- #define DEBUG_SON "debug" /* 调试信息的儿子节点 */
- #define DEBUG_GRAND_SON_ATTR "debug_level_attr" /* 日志信息孙子节点 */
-
- xmlChar *DebugLevelRead(void); // 获取调试信息等级,默认调试等级是4
-
- #endif /* _LOG_H_ */
2 t; `( l1 n; Z$ R
0 l9 t) _' d( X, S! M# z$ d% _& }* i# u7 \, {
$ A# @, {8 M/ W" Q$ B7 }0 p
/ l$ V# f( a2 V9 U5 n+ D( N
9 a7 o. T- U. r: W8 j6 _5 w |
|