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?

@tgreier tgreier force-pushed the log-dir-from-env-var branch from 032f623 to ed60fd3 Compare December 22, 2020 03:32
Signed-off-by: tgreier <[email protected]>
@tgreier tgreier force-pushed the log-dir-from-env-var branch from 4049be7 to ed278ba Compare December 22, 2020 03:42
@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 requested a review from jacobperron January 7, 2021 13:50
@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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants