摘要: class log_work { private: int log_id_ = 1; int log_level_; qnx_slog2() = default; virtual ~qnx_slog2() { uninit(); } public: inline static log_work& g 阅读全文
posted @ 2023-05-11 11:30 花花公子1234 阅读(215) 评论(0) 推荐(0)
摘要: #include <iostream> #include <sstream> #include <string> #include <tuple> #include <type_traits> template <typename T> void print_impl(std::ostringstr 阅读全文
posted @ 2023-05-11 11:08 花花公子1234 阅读(163) 评论(0) 推荐(0)
摘要: 1,编译宏做开关; #ifdef XXX ...; #else ...; #endif 2,自定义日志格式; #define FACEID_TRACE(log_str, ...) 阅读全文
posted @ 2023-05-11 10:29 花花公子1234 阅读(119) 评论(0) 推荐(0)