|
|
EDA365欢迎您登录!
您需要 登录 才可以下载或查看,没有帐号?注册
x
Linux下获取XML调试信息等级 / A, O+ ~7 b, n# E. K
0 @: W% R2 g7 U$ S1 d7 U- #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_ */, }* s0 {. g- q
4 ]3 t8 z F# M, n `& H t; O
) ]% s5 e6 L& f' X) T
0 S. J7 N) V C' V) I2 b/ E4 x
9 m1 p7 p: Z& k6 G; C" v, H0 V) b9 k) k
|
|