打开Cmake,将CMakeLists.txt文件拖入Cmake界面中,并点击【Browse Build】选择构建生成文件夹; 点击【Configrue】,选择需要使用的编译器Visual Studio 15 2017、x64,然后点击【Finish】; 找到【CMAKE_INSTALL_PREFIX】,这是设置编译后的库文件的安装路径,默认是在C盘,需要管理员权限才可以编译,这里我修改为了自己创建...
udp_sink_config sink_config("127.0.0.1", (uint16_t)(50001)); auto udp_sink_ptr = std::make_shared<spdlog::sinks::udp_sink_mt>(sink_config); // 指定目标IP和端口 auto con_logger = std::make_shared<spdlog::logger>("console", udp_sink_ptr);...
auto logger1 = std::make_shared<spdlog::logger>('logger1', sink); auto logger2 = std::make_shared<spdlog::logger>('logger2', sink); auto logger3 = std::make_shared<spdlog::logger>('logger3', sink); logger1->info('hello world '); logger2->info('hello world '); logger3->in...
auto sink = std::make_shared<spdlog::sinks::stdout_color_sink_mt>(); auto dup_filter_sink= std::make_shared<spdlog::sinks::dup_filter_sink_mt>(std::chrono::seconds(5)); dup_filter_sink->add_sink(sink); auto logger = std::make_shared<spdlog::logger>("msvc_logger", dup_filter_...
Search or jump to... Search code, repositories, users, issues, pull requests... Provide feedback We read every piece of feedback, and take your input very seriously. Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter yo...
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:134 (message): Command failed: C:/msys64/ucrt64/bin/cmake.exe --build . --config Debug --target install -- -v -j13 Working Directory: C:/vcpkg/buildtrees/spdlog/x86-windows-dbg ...
(spdlog::level::info);std::shared_ptr<spdlog::sinks::stdout_sink_mt>consoleSink=std::make_shared<spdlog::sinks::stdout_sink_mt>();std::vector<spdlog::sink_ptr>pSinks;pSinks.push_back(consoleSink);pSinks.push_back(file_sink);fileLogger=std::make_shared<spdlog::logger>("web-flv",...
Spdlog使用单例注册表来跟踪可用的记录器。不过,每个dll和exe都可以获得该注册表的一例。
🛠 Fixed shared library building failure on Windows with non MSVC. Thanks@podsvirov(fe97a03). 🛠 Fixed mingw testcase. Thanks@podsvirov(075dcee). Clean CMakeLists.txt. Thanks@Pospelove(cf55e5d). v1.6.1 Changes May 26, 2020
shared_ptr<spdlog::logger> > >,0>,std::basic_string<char,std::char_traits<char>,std::allocator<char> > >' being compiled 1>E:\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\include\xhash(113,44): error C2056: illegal expression 1>D...