proxygen
printf.h File Reference

Go to the source code of this file.

Namespaces

 folly
 —— Concurrent Priority Queue Implementation ——
 

Macros

#define FB_LOGC(logger, level, fmt, ...)   FB_LOG(logger, level, ::folly::loggingFormatPrintf(fmt, ##__VA_ARGS__))
 
#define XLOGC(level, fmt, ...)
 
#define XLOGC_IF(level, cond, fmt, ...)
 

Functions

std::string folly::loggingFormatPrintf (FOLLY_PRINTF_FORMAT const char *format,...) noexcept FOLLY_PRINTF_FORMAT_ATTR(1
 

Macro Definition Documentation

#define FB_LOGC (   logger,
  level,
  fmt,
  ... 
)    FB_LOG(logger, level, ::folly::loggingFormatPrintf(fmt, ##__VA_ARGS__))

Log a message to the specified logger using a printf-style format string.

Definition at line 43 of file printf.h.

Referenced by TEST().

#define XLOGC (   level,
  fmt,
  ... 
)
Value:
::folly::LogLevel::level, \
::folly::loggingFormatPrintf(fmt, ##__VA_ARGS__))
#define XLOG_IMPL(level, type,...)
Definition: xlog.h:165
std::string loggingFormatPrintf(const char *format,...) noexcept
Definition: printf.cpp:25

Log a message to the file's default log category using a printf-style format string.

Definition at line 50 of file printf.h.

Referenced by TEST().

#define XLOGC_IF (   level,
  cond,
  fmt,
  ... 
)
Value:
::folly::LogLevel::level, \
cond, \
::folly::loggingFormatPrintf(fmt, ##__VA_ARGS__))
#define XLOG_IF_IMPL(level, cond, type,...)
Definition: xlog.h:169
std::string loggingFormatPrintf(const char *format,...) noexcept
Definition: printf.cpp:25

Log a message using a printf-style format string if and only if the specified condition predicate evaluates to true. Note that the condition is only evaluated if the log-level check passes.

Definition at line 61 of file printf.h.

Referenced by TEST().