#include "y_simple_log.h"
int main(int argc, char** argv)
{
// 就2个宏: ylogf 和 ylogc, 分别输入日志到 文件 和 终端
// 就2个等级,一个输入调试信息,一个输入简单信息
// 用法和std::cout一模一样
ylogf(debug,"y_simple_log.log") << "helloworld";
ylogc(base) << "helloworld";
ylogc(debug) << 10 << "的16进制值为:" << std::hex << 10;
}
-
Notifications
You must be signed in to change notification settings - Fork 0
congzhibin/y_simple_log
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
c++日志输出
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published