Skip to content

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

Merged
jacobperron merged 3 commits intoros2:foxyfrom
tgreier:log-dir-from-env-var
Jan 7, 2021
Merged

[Foxy] Allow configuring logging directory through environment variables#70
jacobperron merged 3 commits intoros2:foxyfrom
tgreier:log-dir-from-env-var

Conversation

@tgreier
Copy link
Copy Markdown

@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>
@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 <tgreier@moog.com>
@tgreier tgreier force-pushed the log-dir-from-env-var branch from 4049be7 to ed278ba Compare December 22, 2020 03:42
@tgreier
Copy link
Copy Markdown
Author

tgreier commented Jan 6, 2021

@ivanpauno Hello, could you please review this PR?

Copy link
Copy Markdown
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
Copy Markdown
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