美文网首页
fastrtps 设置info log输出

fastrtps 设置info log输出

作者: Barry_Xu | 来源:发表于2020-02-14 10:54 被阅读0次
  1. 在App里面设置
    Log::SetVerbosity(Log::Kind::Info);
    
  2. 修改 include/fastdds/dds/log/Log.hpp
    找到下面这句
    #if (defined(__INTERNALDEBUG) || defined(_INTERNALDEBUG)) && (defined(_DEBUG) || defined(__DEBUG)) && \
    (!defined(LOG_NO_INFO))
    
    改为
    #ifndef LOG_NO_INFO
    
  3. 编译fastrtps的代码再执行。

相关文章

网友评论

      本文标题:fastrtps 设置info log输出

      本文链接:https://www.haomeiwen.com/subject/rhldfhtx.html