slogtest.cpp
来自「贡献一份commoncpp2,有兴趣的可以研究一下」· C++ 代码 · 共 23 行
CPP
23 行
#include <cc++/slog.h>#include <iostream>#include <cstdio>#ifdef CCXX_NAMESPACESusing namespace std;using namespace ost;#endifint main(int argc, char* argv[]){ slog("slogTest", Slog::classUser, Slog::levelInfo); slog << "Howdy daemon and clog." << endl; slog.clogEnable(false); slog << "This is only for the daemon." << endl; slog.clogEnable(true); slog << "Are you still there?" << endl; return 0;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?