diff options
Diffstat (limited to 'absl/log/log.h')
-rw-r--r-- | absl/log/log.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/absl/log/log.h b/absl/log/log.h index 90415fa8..a4e1d1fe 100644 --- a/absl/log/log.h +++ b/absl/log/log.h @@ -233,6 +233,11 @@ // // See vlog_is_on.h for further documentation, including the usage of the // --vmodule flag to log at different levels in different source files. +// +// `VLOG` does not produce any output when verbose logging is not enabled. +// However, simply testing whether verbose logging is enabled can be expensive. +// If you don't intend to enable verbose logging in non-debug builds, consider +// using `DVLOG` instead. #define VLOG(severity) ABSL_LOG_INTERNAL_VLOG_IMPL(severity) // `DVLOG` behaves like `VLOG` in debug mode (i.e. `#ifndef NDEBUG`). |