Ask Your Question
1

external config for spdlog or ability to set custom filename for log in ros2

asked 2020-11-06 07:12:20 -0600

MHx gravatar image

updated 2020-11-06 07:52:49 -0600

Is there anything in the pipeline in terms of building ability to read external config files for the default logger, spdlog?

Alternatively, does a method exist or is currently being developed, for setting custom names for log files?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2021-12-17 02:26:41 -0600

rasmusan- gravatar image

Afaik, the implementation of the default logger (spdlog) does not currently support custom log configuration: https://github.com/ros2/rcl_logging/b...

If you compile ROS2 from source, you can use log4cxx instead, which does support external configuration. There are however a number of other issues with that (which is why the default logging system was changed to spdlog).

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

3 followers

Stats

Asked: 2020-11-06 07:12:20 -0600

Seen: 110 times

Last updated: Dec 17 '21