【无标题】

iceoryx日志级别如何配置

1.是否可使用toml配置文件?

查找ros2代码库中的所有toml文件,未发现日志级别的配置 在这里插入图片描述

查找github仓库

RouDiApp::RouDiApp(const config::CmdLineArgs_t& cmdLineArgs, const RouDiConfig_t& config) noexcept
m_logLevel(cmdLineArgs.logLevel)
, m_monitoringMode(cmdLineArgs.monitoringMode)
, m_run(checkAndOptimizeConfig(config))
, m_config(config)
, m_compatibilityCheckLevel(cmdLineArgs.compatibilityCheckLevel)
, m_processKillDelay(cmdLineArgs.processKillDelay)
{
// the “and” is intentional, just in case the the provided RouDiConfig_t is empty
m_run &= cmdLineArgs.run;
if (cmdLineArgs.uniqueRouDiId)
{
popo::UniquePortId::setUniqueRouDiId(cmdLineArgs.uniqueRouDiId.value());
}
// be silent if not running
if (m_run)
{
    iox::log::LogManager::GetLogManager().SetDefaultLogLevel(m_logLevel);

发现roudi的log级别是通过CmdLineArgs传递的
使用iox-roudi -h发现-l用于指定日志级别
Options:
-h, --help Display help.
-v, --version Display version.
-u, --unique-roudi-id Set the unique RouDi id.
-m, --monitoring-mode Set process alive monitoring mode.
{on, off}
default = ‘on’
on: enables monitoring for all processes
off: disables monitoring for all processes
-l, --log-level Set log level.
{off, fatal, error, warning, info, debug, verbose}

-x, --compatibility Set compatibility check level between runtime and RouDi.
off: no check
major: same major version
minor: same minor version + major check
patch: same patch version + minor check
commitId: same commit ID + patch check
buildDate: same build date + commId check
-k, --kill-delay Sets the delay when RouDi sends SIG_KILL, if apps
have’t responded after trying SIG_TERM first, in seconds.

Config File Option:
-c, --config-file Path to the RouDi Config File.
Have a look at the documentation for the format.
If option is not given, fallbacks in descending order:
1) /etc/iceoryx/roudi_config.toml
2) hard-coded config

  • 16
    点赞
  • 18
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值