roll: pigweed pw_log: Explicitly pass verbosity to PW_LOG

Updates the PW_LOG contract to ensure that PW_LOG's default
implementation does not rely on any global preprocessor defines,
instead it ensures that all arguments are explicitly passed. This
is done by passing the verbosity explicitly as an argument by
selecting them in the PW_LOG_* macros instead and updating the
PW_LOG_ENABLE_IF to also take in verbosity.

Lastly PW_LOG_ENABLE_IF_DEFAULT is removed and PW_LOG_ENABLE_IF is
changed to be a module configuration option, meaning that there
should be a single definition for a toolchain (this is not permitted
to vary between compile units).

Original-Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/239035
Original-Revision: 661bf47f06e604384a4c7eb7bf79d2f3da71ee74

Rolled-Repo: https://pigweed.googlesource.com/pigweed/pigweed
Rolled-Commits: 0dff1169bf8b8c..661bf47f06e604
Roll-Count: 1
Roller-URL: https://cr-buildbucket.appspot.com/build/8732702538766096193
GitWatcher: ignore
CQ-Do-Not-Cancel-Tryjobs: true
Change-Id: I92bd244fc23198aa808de6bebbb94eaccdd28f0c
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/showcase/sense/+/245436
Bot-Commit: Pigweed Roller <pigweed-roller@pigweed-service-accounts.iam.gserviceaccount.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Commit-Queue: Pigweed Roller <pigweed-roller@pigweed-service-accounts.iam.gserviceaccount.com>
1 file changed
tree: 06d1a1459c97a90a7bba5bdff9dcdbeb82be9fdc
  1. .github/
  2. .vscode/
  3. apps/
  4. device/
  5. modules/
  6. system/
  7. targets/
  8. tools/
  9. web_app/
  10. .bazelignore
  11. .bazelrc
  12. .bazelversion
  13. .buildifier.json
  14. .clang-format
  15. .clangd.shared
  16. .gitignore
  17. .pw_console.yaml
  18. AUTHORS
  19. BUILD.bazel
  20. CONTRIBUTING.md
  21. LICENSE
  22. MODULE.bazel
  23. MODULE.bazel.lock
  24. OWNERS
  25. pigweed.json
  26. README.md
README.md

Sense

git clone https://pigweed.googlesource.com/pigweed/showcase/sense

Welcome to Pigweed Sense, a tour of key Pigweed components experienced through an imagined air quality product.

Please visit Sense: An interactive tour through Pigweed to get started.