FB_LOG

Log a message to the specified logger.

Synopsis

Declared in <folly/logging/Logger.h>

#define FB_LOG(logger, level, ...)

Description

This macro avoids evaluating the log arguments unless the log level check succeeds.

Beware that the logger argument is evaluated twice, so this argument should be an expression with no side-effects.

Parameters

NameDescription
loggerThe logger identifying the log category.
levelThe unqualified folly::LogLevel name.