Open cfveeden opened 1 year ago
@clalancette and @wjwwood is this change something that looks like it can be included?
@fujitatomoya spdlog
does not have the functionality to be configured from files. It seems the recommended way to configure it is either to use spdlog_setup
or re-implement the configuration logic. Which is preferred for ROS2?
@cfveeden i was thinking that we need to have something similar with https://github.com/guangie88/spdlog_setup in rcl_logging_spdlog
. before starting implementation, maybe we can discuss on how to address this requirement in WG meeting probably Client WG? what do you think?
@fujitatomoya From the notes on the page the group is on hiatus and from the meeting minutes, I see the last meeting for that WG took place on 2023-01-18. Is it still active? If it is, it would be good to have the discussion and gather more requirements and insights from others.
For configuring spdlog
, here are some pre-liminary options worth considering:
rcl_logging_spdlog
and add features as requests come in from the ROS2 community.spdlog_setup
.spdlog_setup
and the code frequency chart and commits shows that there hasn't been much recent activity, fork and maintain a ROS2 version of spdlog_setup
and depend on that instead of re-implementing it.I see the last meeting for that WG took place on 2023-01-18. Is it still active?
that i did not know 😓 @gbiggs @alsora Client WG is still active? or we should have this topic to somewhere else?
The client WG hasn't met in a few months. I think we can discuss this on Github
@cfveeden based on https://github.com/ros2/rcl_logging/pull/103#issuecomment-1874319169,
IMO,
Re-implement the parts that make sense inside rcl_logging_spdlog and add features as requests come in from the ROS2 community.
this looks reasonable for me. off the top of my head,
yaml
?RCL_LOGGING_SPDLOG_EXPERIMENTAL_OLD_FLUSHING_BEHAVIOR
.maybe we can open the dedicated task issue for this and link all issues to it to track. unfortunately, i do not have bandwidth for this task right now, but i am happy to review and discuss details.
@fujitatomoya
- what is the format configuration file, such as
yaml
?- what elements should be supported in configuration file?
- deprecate the current environmental variable for spdlog,
RCL_LOGGING_SPDLOG_EXPERIMENTAL_OLD_FLUSHING_BEHAVIOR
.maybe we can open the dedicated task issue for this and link all issues to it to track. unfortunately, i do not have bandwidth for this task right now, but i am happy to review and discuss details.
If you want to organise the effort under an initiative, I think #92 provides some of the things that we should aim for, especially the section under "For these reasons, I propose we make these changes:" in the OP's comment.
Other issues of interest for logging features would be #100, #105, #106.
I think https://github.com/ros2/rcl_logging/issues/92 provides some of the things that we should aim for, especially the section under "For these reasons, I propose we make these changes:" in the OP's comment.
agree, we can have the discussion on https://github.com/ros2/rcl_logging/issues/92
Description
spdlog
supports rotating loggers, butrcl_logging
is not currently using them. This PR introduces the capability and puts the feature behind an envvar to preserve the original behaviour.Details