-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spdlog rotate patch #103
base: rolling
Are you sure you want to change the base?
Spdlog rotate patch #103
Conversation
834f392
to
49ce6c1
Compare
Signed-off-by: Francois van Eeden <cfveeden@clearpath.ai>
Signed-off-by: Francois van Eeden <cfveeden@clearpath.ai>
Signed-off-by: Francois van Eeden <cfveeden@clearpath.ai>
c1d20ec
to
329a182
Compare
@clalancette and @wjwwood is this change something that looks like it can be included? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
similar comment with #105 (review)
can we use const char * config_file
argument for backend logger initialization. i think that would be the place to put those settings and configuration.
rcl_logging/rcl_logging_interface/include/rcl_logging_interface/rcl_logging_interface.h
Lines 36 to 39 in 1af4e49
* \param[in] config_file The location of a config file that the external | |
* logging library should use to configure itself. | |
* If provided, it must be a null terminated C string. | |
* If set to NULL or the empty string, the logging library will use defaults. |
btw, config_file
is not used currently, so maybe we could start, what configuration or setting should be described in config_file
for rcl_logging_spdlog
?
@fujitatomoya |
@cfveeden i was thinking that we need to have something similar with https://github.com/guangie88/spdlog_setup in |
@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
|
The client WG hasn't met in a few months. |
@cfveeden based on #103 (comment), IMO,
this looks reasonable for me. off the top of my head,
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. |
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
The introduced ennvars and their defaults are: