cplogtestpriorities.cxx
来自「SIP(Session Initiation Protocol)是由IETF定义」· CXX 代码 · 共 25 行
CXX
25 行
#include "cpLog.h"void print_some_errors(){ cpLog (LOG_ERR, "This is an error message. You should see it."); /* boundary condition */ cpLog (LOG_WARNING, "This is a warning message. You should see it."); cpLog (LOG_DEBUG_STACK, "This is a stack debug message. You should not see it.");}int main(){ cpLogSetPriority (LOG_WARNING); /* Default: Use standard error */ print_some_errors(); /* Next try printing to a file. */ cpLogOpen ("test_log"); print_some_errors(); return 0;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?