Skip to content

Add C++ API for set_default_enabled to globally enable/disable recording streams.#4014

Merged
teh-cmc merged 12 commits intomainfrom
jleibs/cpp_config_logging
Oct 27, 2023
Merged

Add C++ API for set_default_enabled to globally enable/disable recording streams.#4014
teh-cmc merged 12 commits intomainfrom
jleibs/cpp_config_logging

Conversation

@jleibs
Copy link
Copy Markdown
Contributor

@jleibs jleibs commented Oct 25, 2023

What

Adds a very minimal singleton config system and an API to toggle the state of default_recordings. Specifically this makes it possible for a user to globally disable default recordings, and then enable them via the RERUN environment variable.

Checklist

  • I have read and agree to Contributor Guide and the Code of Conduct
  • I've included a screenshot or gif (if applicable)
  • I have tested demo.rerun.io (if applicable)
  • The PR title and labels are set such as to maximize their usefulness for the next release's CHANGELOG

@jleibs jleibs changed the title Add C++ API for `set_default_enabled Add C++ API for set_default_enabled to globally enable/disable recording streams. Oct 25, 2023
@jleibs jleibs added sdk-cpp C/C++ API specific exclude from changelog PRs with this won't show up in CHANGELOG.md labels Oct 25, 2023
@jleibs jleibs marked this pull request as ready for review October 25, 2023 20:20
@teh-cmc teh-cmc self-requested a review October 26, 2023 07:25
@jleibs jleibs requested review from Wumpf and teh-cmc October 26, 2023 14:40
@teh-cmc teh-cmc removed the request for review from Wumpf October 27, 2023 08:07
@teh-cmc teh-cmc merged commit 2b05c23 into main Oct 27, 2023
@teh-cmc teh-cmc deleted the jleibs/cpp_config_logging branch October 27, 2023 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

exclude from changelog PRs with this won't show up in CHANGELOG.md sdk-cpp C/C++ API specific

Projects

None yet

Development

Successfully merging this pull request may close these issues.

C++ make it easy to turn off logging

3 participants