我正在使用spdlog库进行C++日志记录。我有一个同时使用stdout和rotating_file_sink_mt的记录器,因为: auto file_sinc = std::make_shared<spdlog::sinks::rotating_file_sink_mt>("1.logsinks.push_back(std_out_sinc);
我想使用spdlog来记录我的代码。在我的代码中,有一个重要的变量用于模拟步骤,我希望它总是显示在我的日志中。这是我想要的格式。我在spdlog的github中读过Readme.md,我看到了这个// the following example#include "spdlog/pattern_formatter.h"
class my_formatter_flag : public <e