FB_LOG_RAW

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

NameDescription
loggerThe logger identifying the log category.
levelA qualified folly::LogLevel value or variable.
filenameThe source filename to record.
linenumberThe source line number to record.
functionNameThe function name to record.