Go to the source code of this file.
FOLLY_INIT_LOGGING_CONFIG |
( |
" |
. = WARNING , |
|
|
folly |
= INFO; default:async=true |
|
) |
| |
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 36 of file main.cpp.
References bm::init(), XLOG, and XLOGF.
40 XLOG(INFO) <<
"log messages less than WARNING will be ignored";
41 XLOG(ERR) <<
"error messages before initLogging() will be logged to stderr";
50 XLOG(INFO,
"now the normal log settings have been applied");
52 XLOG(DBG1,
"log arguments are concatenated: ", 12345,
", ", 92.0);
53 XLOGF(DBG1,
"XLOGF supports {}-style formatting: {:.3f}",
"python", 1.0 / 3);
54 XLOG(DBG2) <<
"streaming syntax is also supported: " << 1234;
55 XLOG(DBG2,
"if you really want, ",
"you can even")
56 <<
" mix function-style and streaming syntax: " << 42;
57 XLOGF(DBG3,
"and {} can mix {} style",
"you",
"format") <<
" and streaming";
60 XLOG(INFO) <<
"main returning";
#define XLOGF(level, fmt, arg1,...)