flags.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. // Copyright 2022 The Abseil Authors.
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // https://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. //
  15. // -----------------------------------------------------------------------------
  16. // File: log/flags.h
  17. // -----------------------------------------------------------------------------
  18. //
  19. #ifndef ABSL_LOG_FLAGS_H_
  20. #define ABSL_LOG_FLAGS_H_
  21. // The Abseil Logging library supports the following command line flags to
  22. // configure logging behavior at runtime:
  23. //
  24. // --stderrthreshold=<value>
  25. // Log messages at or above this threshold level are copied to stderr.
  26. //
  27. // --minloglevel=<value>
  28. // Messages logged at a lower level than this are discarded and don't actually
  29. // get logged anywhere.
  30. //
  31. // --log_backtrace_at=<file:linenum>
  32. // Emit a backtrace (stack trace) when logging at file:linenum.
  33. //
  34. // To use these commandline flags, the //absl/log:flags library must be
  35. // explicitly linked, and absl::ParseCommandLine() must be called before the
  36. // call to absl::InitializeLog().
  37. //
  38. // To configure the Log library programmatically, use the interfaces defined in
  39. // absl/log/globals.h.
  40. #endif // ABSL_LOG_FLAGS_H_