FB_LOG_RAW() can be used by callers that want to pass in the log level as a variable, and/or who want to explicitly specify the filename and line number.
Synopsis
Declared in <folly/logging/Logger.h>
#define FB_LOG_RAW(logger, level, filename, linenumber, functionName, …)
Description
This is useful for callers implementing their own log wrapper functions that want to pass in their caller's filename and line number rather than their own.
The log level parameter must be an explicitly qualified LogLevel value, or a LogLevel variable. (This differs from FB_LOG() and FB_LOGF() which accept an unqualified LogLevel name.)
Parameters
Name |
Description |
logger |
The logger identifying the log category. |
level |
A qualified |
filename |
The source filename to record. |
linenumber |
The source line number to record. |
functionName |
The function name to record. |
Created with MrDocs