summaryrefslogtreecommitdiff
path: root/absl/log/log.h
diff options
context:
space:
mode:
authorGravatar Christian Blichmann <cblichmann@google.com>2022-10-13 00:39:09 -0700
committerGravatar Copybara-Service <copybara-worker@google.com>2022-10-13 00:39:50 -0700
commitfbe4660185b76c4b8f1f57ea14c5c3beea955ad1 (patch)
tree06d8b0479b79decde1fc46208ef4a216ab7185ce /absl/log/log.h
parente58d05efe0b3b1dfff3faf5b8b58c43bd8e6e29f (diff)
Remove internal `VLOG_xxx` macros
Those have been exported by accident and are using internal machinery to implement verbose logging. PiperOrigin-RevId: 480815356 Change-Id: I84f6b6dac562cb27634d6538023eda66bed9a7f8
Diffstat (limited to 'absl/log/log.h')
-rw-r--r--absl/log/log.h39
1 files changed, 0 insertions, 39 deletions
diff --git a/absl/log/log.h b/absl/log/log.h
index 13c4938f..5331fdbf 100644
--- a/absl/log/log.h
+++ b/absl/log/log.h
@@ -196,9 +196,6 @@
// Example:
//
// LOG_IF(INFO, num_cookies > 10) << "Got lots of cookies";
-//
-// There is no `VLOG_IF` because the order of evaluation of the arguments is
-// ambiguous and the alternate spelling with an `if`-statement is trivial.
#define LOG_IF(severity, condition) \
ABSL_LOG_INTERNAL_CONDITION_##severity(STATELESS, condition) \
ABSL_LOGGING_INTERNAL_LOG_##severity.InternalStream()
@@ -318,42 +315,6 @@
(EveryNSec, n_seconds) ABSL_LOGGING_INTERNAL_LOG_##severity.InternalStream()
#endif // def NDEBUG
-#define VLOG_EVERY_N(verbose_level, n) \
- for (int absl_logging_internal_verbose_level = (verbose_level), \
- absl_logging_internal_log_loop = 1; \
- absl_logging_internal_log_loop; absl_logging_internal_log_loop = 0) \
- ABSL_LOG_INTERNAL_CONDITION_INFO( \
- STATEFUL, VLOG_IS_ON(absl_logging_internal_verbose_level)) \
- (EveryN, n) ABSL_LOGGING_INTERNAL_LOG_INFO.InternalStream().WithVerbosity( \
- absl_logging_internal_verbose_level)
-
-#define VLOG_FIRST_N(verbose_level, n) \
- for (int absl_logging_internal_verbose_level = (verbose_level), \
- absl_logging_internal_log_loop = 1; \
- absl_logging_internal_log_loop; absl_logging_internal_log_loop = 0) \
- ABSL_LOG_INTERNAL_CONDITION_INFO( \
- STATEFUL, VLOG_IS_ON(absl_logging_internal_verbose_level)) \
- (FirstN, n) ABSL_LOGGING_INTERNAL_LOG_INFO.InternalStream().WithVerbosity( \
- absl_logging_internal_verbose_level)
-
-#define VLOG_EVERY_POW_2(verbose_level) \
- for (int absl_logging_internal_verbose_level = (verbose_level), \
- absl_logging_internal_log_loop = 1; \
- absl_logging_internal_log_loop; absl_logging_internal_log_loop = 0) \
- ABSL_LOG_INTERNAL_CONDITION_INFO( \
- STATEFUL, VLOG_IS_ON(absl_logging_internal_verbose_level)) \
- (EveryPow2) ABSL_LOGGING_INTERNAL_LOG_INFO.InternalStream().WithVerbosity( \
- absl_logging_internal_verbose_level)
-
-#define VLOG_EVERY_N_SEC(verbose_level, n_seconds) \
- for (int absl_logging_internal_verbose_level = (verbose_level), \
- absl_logging_internal_log_loop = 1; \
- absl_logging_internal_log_loop; absl_logging_internal_log_loop = 0) \
- ABSL_LOG_INTERNAL_CONDITION_INFO( \
- STATEFUL, VLOG_IS_ON(absl_logging_internal_verbose_level)) \
- (EveryNSec, n_seconds) ABSL_LOGGING_INTERNAL_LOG_INFO.InternalStream() \
- .WithVerbosity(absl_logging_internal_verbose_level)
-
// `LOG_IF_EVERY_N` and friends behave as the corresponding `LOG_EVERY_N`
// but neither increment a counter nor log a message if condition is false (as
// `LOG_IF`).