10 +116,9 @@ TEST_CASE("clone-logger", "[clone]") TEST_CASE("clone async", "[clone]") { - using namespace spdlog; - + using spdlog::sinks::test_sink_st; spdlog::init_thread_pool(4, 1); - auto test_sink = std::make_shared...
`自定义格式格式应用到所有被注册的logger: spdlog::set_pattern("*** [%H:%M..." ... std::ostringstream oss; auto ostream_sink = std::make_sharedostream_sink_mt> (...spdlog::thread_pool(), async_overflow_policy::block); 直接构造,使用自定义线程池 spdlog::init_thread_pool(queue_size.....