|
|
EDA365欢迎您登录!
您需要 登录 才可以下载或查看,没有帐号?注册
x
Linux下获取XML调试信息等级
{$ W# q- @6 t% q& f8 n
6 M: |' C3 b- t, N7 B- e- #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_ */5 X1 X, L: ^9 f8 x3 z) k
; |6 e7 F* T6 X
6 c7 h( a8 k! H* X Q, f7 p
1 i$ Y! U* _+ U0 M' ^4 @! m7 u, q _0 c
6 O3 a* e5 g. B& J" W. C0 u
|
|