*
* This macro generally should not be used directly by end users.
*/
+/* clang-format off */
#define FB_LOG_IMPL(logger, level, type, ...) \
(!(logger).getCategory()->logCheck(level)) \
? ::folly::logDisabledHelper( \
std::integral_constant<bool, ::folly::isLogLevelFatal(level)>{}) \
- : ::folly::LogStreamVoidify<::folly::isLogLevelFatal(level)>{} & \
+ : ::folly::LogStreamVoidify< ::folly::isLogLevelFatal(level)>{} & \
::folly::LogStreamProcessor{(logger).getCategory(), \
(level), \
__FILE__, \
(type), \
##__VA_ARGS__} \
.stream()
+/* clang-format on */
/**
* Log a message to the specified logger.
* initialized. On all subsequent calls, disabled log statements can be
* skipped with just a single check of the LogLevel.
*/
+/* clang-format off */
#define XLOG_IMPL(level, type, ...) \
(!XLOG_IS_ON_IMPL(level)) \
? ::folly::logDisabledHelper( \
std::integral_constant<bool, ::folly::isLogLevelFatal(level)>{}) \
- : ::folly::LogStreamVoidify<::folly::isLogLevelFatal(level)>{} & \
+ : ::folly::LogStreamVoidify< ::folly::isLogLevelFatal(level)>{} & \
::folly::LogStreamProcessor( \
[] { \
static ::folly::XlogCategoryInfo<XLOG_IS_IN_HEADER_FILE> \
(type), \
##__VA_ARGS__) \
.stream()
+/* clang-format on */
/**
* Check if and XLOG() statement with the given log level would be enabled.