A file‐static XlogLevelInfo and XlogCategoryInfo object is declared for each XLOG() statement.
Synopsis
Declared in <folly/logging/xlog.h>
template<bool IsInHeaderFile>
class XlogLevelInfo;
Description
We intentionally do not provide constructors for these structures, and rely on their members to be zero‐initialized when the program starts. This ensures that everything will work as desired even if XLOG() statements are used during dynamic object initialization before main().
Member Functions
Name |
Description |
Checks whether a message at the given level should be logged. |
Specializations
Name |
Description |
Specialization of XlogLevelInfo for XLOG() statements in the .cpp file being compiled. In this case we only define a single file‐static LogLevel object for the entire file, rather than defining one for each XLOG() statement. |
Created with MrDocs