proxygen
logging_test Namespace Reference

Functions

void testXlogFile1Dbg1 (folly::StringPiece msg)
 
void testXlogFile2Dbg1 (folly::StringPiece msg)
 
void testXlogHdrLoop (size_t numIters, folly::StringPiece arg)
 
void testXlogHdrFunction (folly::StringPiece str, int value)
 

Function Documentation

void logging_test::testXlogFile1Dbg1 ( folly::StringPiece  msg)

Definition at line 20 of file XlogFile1.cpp.

References XLOG.

Referenced by TEST_F(), and testXlogHdrLoop().

20  {
21  XLOG(DBG1) << "file1: " << msg;
22 }
#define XLOG(level,...)
Definition: xlog.h:57
void logging_test::testXlogFile2Dbg1 ( folly::StringPiece  msg)

Definition at line 20 of file XlogFile2.cpp.

References XLOG.

Referenced by TEST_F(), and testXlogHdrLoop().

20  {
21  XLOG(DBG1, "file2: ", msg);
22 }
#define XLOG(level,...)
Definition: xlog.h:57
void logging_test::testXlogHdrFunction ( folly::StringPiece  str,
int  value 
)
inline

Definition at line 22 of file XlogHeader2.h.

References XLOG.

Referenced by TEST_F().

22  {
23  XLOG(DBG3, "test: ", str, "=", value);
24 }
static const char *const value
Definition: Conv.cpp:50
#define XLOG(level,...)
Definition: xlog.h:57
void logging_test::testXlogHdrLoop ( size_t  numIters,
folly::StringPiece  arg 
)
inline

Definition at line 24 of file XlogHeader1.h.

References testXlogFile1Dbg1(), testXlogFile2Dbg1(), and XLOGF.

Referenced by TEST_F().

24  {
25  XLOGF(DBG1, "starting: {}", arg);
26  for (size_t n = 0; n < numIters; ++n) {
27  XLOGF(DBG5, "test: {}", arg);
28  }
29  XLOGF(DBG1, "finished: {}", arg);
30 }
#define XLOGF(level, fmt, arg1,...)
Definition: xlog.h:77