Skip to content
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

[Foxy] Allow configuring logging directory through environment variables #70

Merged
merged 3 commits into from Jan 7, 2021

Conversation

tgreier
Copy link

@tgreier tgreier commented Dec 22, 2020

Backport of functionality from PR Allow configuring logging directory through environment variables #53.

This allows configuring the logging directory through environment variables using the following logic:
Use $ROS_LOG_DIR if ROS_LOG_DIR is set and not empty.
Otherwise, use $ROS_HOME/log, using ~/.ros for ROS_HOME if not set or if empty.

Implemented only for spd log.

Should it also be added for log4cxx? If so, should a copy of the rcl_logging_get_logging_directory API be added to the log4cxx package?

Signed-off-by: tgreier <tgreier@moog.com>
Signed-off-by: tgreier <tgreier@moog.com>
Signed-off-by: tgreier <tgreier@moog.com>
@tgreier
Copy link
Author

tgreier commented Jan 6, 2021

@ivanpauno Hello, could you please review this PR?

Copy link
Member

@ivanpauno ivanpauno left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds safe to backport to me

@ivanpauno ivanpauno added this to Proposed in Foxy Patch Release 5 via automation Jan 7, 2021
@jacobperron jacobperron moved this from Proposed to Needs release in Foxy Patch Release 5 Jan 7, 2021
@jacobperron
Copy link
Member

jacobperron commented Jan 7, 2021

Testing rcl_logging_spdlog and ROS 2 client libraries:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status (unrelated warnings)

@jacobperron jacobperron merged commit 6ad3966 into ros2:foxy Jan 7, 2021
@jacobperron jacobperron moved this from Needs release to Released in Foxy Patch Release 5 Apr 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants