logging: add printf-style logging macros
Summary: Add new `FB_LOGC()` and `XLOGC()` macros that accept C-style printf format strings. (The `FB_LOGF()` and `XLOGF()` macro names are already used for `folly::format()` style formatting.) This will make it easier for users to update existing printf-style code to use this new logging library. These are in a separate `printf.h` header file that must be explicitly included to have access to these macros. The intent is to encourage users to use one of the other APIs (streaming, append-style, or `folly::format()`) instead of these printf-like APIs in new code. Reviewed By: omry Differential Revision: D5269974 fbshipit-source-id: 56e55f9642bb00806d9b4c762fb6a91778ef6ad3
Showing
Please register or sign in to comment