一、简介 spdlog是基于C++ 11的日志组件,它非常轻量,使用时你仅仅需要引入头文件就可以了。 https://github.com/gabime/spdlog https://github.com/gabime/spdlog/wiki/3.-Custom-formatting 二、线程安全 命名空间spdlog:: 下面的大多数方法是线程安全的。已知以下三个是线程不安全的,使用时请注意: void spdlo...
, c); }创建logger每一个logger中包含一个存有一个或多个 std::shared_ptr<spdlog::sink>的vectorlogger在记录每一条日志时(如果是有效的级别),将会调用每一个std::shared_ptr<spdlog::sink>中的sink(log_msg)函数spdlog用_mt(多线程)和_st(单线程)后缀标识sink是否是线程安全...
#17 Changes from 4 commits File filter Conversations rcl_logging_spdlog CMakeLists.txt include/rcl_logging_spdlog logging_interface.h visibility_control.h package.xml src rcl_logging_spdlog.cpp 47 changes: 47 additions & 0 deletions 47 rcl_logging_spdlog/CMakeLists.txt @@ -0,0 +...
Contributor Author candrews commented Jun 25, 2021 @gabime can you please make a new release of spdlog? Owner gabime commented Jun 25, 2021 It is not ready yet. There are compilation problems with cpp 17/20 and with utf support in windows. gabime reopened this Jun 25, 2021 Owner ...