|
#define | CREATE_MESSAGE(logger, severity, category, datatype) ::onnxruntime::logging::Capture(logger, ::onnxruntime::logging::Severity::k##severity, category, datatype, ORT_WHERE) |
|
#define | LOGS_CATEGORY(logger, severity, category) |
|
#define | LOGS_USER_CATEGORY(logger, severity, category) |
|
#define | LOGF_CATEGORY(logger, severity, category, format_str,...) |
|
#define | LOGF_USER_CATEGORY(logger, severity, category, format_str,...) |
|
#define | LOGS(logger, severity) LOGS_CATEGORY(logger, severity, ::onnxruntime::logging::Category::onnxruntime) |
|
#define | LOGS_USER(logger, severity) LOGS_USER_CATEGORY(logger, severity, ::onnxruntime::logging::Category::onnxruntime) |
|
#define | LOGF(logger, severity, format_str,...) LOGF_CATEGORY(logger, severity, ::onnxruntime::logging::Category::onnxruntime, format_str, ##__VA_ARGS__) |
|
#define | LOGF_USER(logger, severity, format_str,...) LOGF_USER_CATEGORY(logger, severity, ::onnxruntime::logging::Category::onnxruntime, format_str, ##__VA_ARGS__) |
|
#define | LOGS_DEFAULT_CATEGORY(severity, category) LOGS_CATEGORY(::onnxruntime::logging::LoggingManager::DefaultLogger(), severity, category) |
|
#define | LOGS_USER_DEFAULT_CATEGORY(severity, category) LOGS_USER_CATEGORY(::onnxruntime::logging::LoggingManager::DefaultLogger(), severity, category) |
|
#define | LOGF_DEFAULT_CATEGORY(severity, category, format_str,...) LOGF_CATEGORY(::onnxruntime::logging::LoggingManager::DefaultLogger(), severity, category, format_str, ##__VA_ARGS__) |
|
#define | LOGF_USER_DEFAULT_CATEGORY(severity, category, format_str,...) LOGF_USER_CATEGORY(::onnxruntime::logging::LoggingManager::DefaultLogger(), severity, category, format_str, ##__VA_ARGS__) |
|
#define | LOGS_DEFAULT(severity) LOGS_DEFAULT_CATEGORY(severity, ::onnxruntime::logging::Category::onnxruntime) |
|
#define | LOGS_USER_DEFAULT(severity) LOGS_USER_DEFAULT_CATEGORY(severity, ::onnxruntime::logging::Category::onnxruntime) |
|
#define | LOGF_DEFAULT(severity, format_str,...) LOGF_DEFAULT_CATEGORY(severity, ::onnxruntime::logging::Category::onnxruntime, format_str, ##__VA_ARGS__) |
|
#define | LOGF_USER_DEFAULT(severity, format_str,...) LOGF_USER_DEFAULT_CATEGORY(severity, ::onnxruntime::logging::Category::onnxruntime, format_str, ##__VA_ARGS__) |
|
#define | LOGS_CATEGORY_IF(boolean_expression, logger, severity, category) |
|
#define | LOGS_DEFAULT_CATEGORY_IF(boolean_expression, severity, category) |
|
#define | LOGS_USER_CATEGORY_IF(boolean_expression, logger, severity, category) |
|
#define | LOGS_USER_DEFAULT_CATEGORY_IF(boolean_expression, severity, category) |
|
#define | LOGF_CATEGORY_IF(boolean_expression, logger, severity, category, format_str,...) |
|
#define | LOGF_DEFAULT_CATEGORY_IF(boolean_expression, severity, category, format_str,...) |
|
#define | LOGF_USER_CATEGORY_IF(boolean_expression, logger, severity, category, format_str,...) |
|
#define | LOGF_USER_DEFAULT_CATEGORY_IF(boolean_expression, severity, category, format_str,...) |
|
#define | LOGS_IF(boolean_expression, logger, severity) LOGS_CATEGORY_IF(boolean_expression, logger, severity, ::onnxruntime::logging::Category::onnxruntime) |
|
#define | LOGS_DEFAULT_IF(boolean_expression, severity) LOGS_DEFAULT_CATEGORY_IF(boolean_expression, severity, ::onnxruntime::logging::Category::onnxruntime) |
|
#define | LOGS_USER_IF(boolean_expression, logger, severity) LOGS_USER_CATEGORY_IF(boolean_expression, logger, severity, ::onnxruntime::logging::Category::onnxruntime) |
|
#define | LOGS_USER_DEFAULT_IF(boolean_expression, severity) LOGS_USER_DEFAULT_CATEGORY_IF(boolean_expression, severity, ::onnxruntime::logging::Category::onnxruntime) |
|
#define | LOGF_IF(boolean_expression, logger, severity, format_str,...) LOGF_CATEGORY_IF(boolean_expression, logger, severity, ::onnxruntime::logging::Category::onnxruntime, format_str, ##__VA_ARGS__) |
|
#define | LOGF_DEFAULT_IF(boolean_expression, severity, format_str,...) LOGF_DEFAULT_CATEGORY_IF(boolean_expression, severity, ::onnxruntime::logging::Category::onnxruntime, format_str, ##__VA_ARGS__) |
|
#define | LOGF_USER_IF(boolean_expression, logger, severity, format_str,...) |
|
#define | LOGF_USER_DEFAULT_IF(boolean_expression, severity, format_str,...) |
|
#define | VLOGS(logger, level) |
|
#define | VLOGS_USER(logger, level) |
|
#define | VLOGF(logger, level, format_str,...) |
|
#define | VLOGF_USER(logger, level, format_str,...) |
|
#define | VLOGS_DEFAULT(level) VLOGS(::onnxruntime::logging::LoggingManager::DefaultLogger(), level) |
|
#define | VLOGS_USER_DEFAULT(level) VLOGS_USER(::onnxruntime::logging::LoggingManager::DefaultLogger(), level) |
|
#define | VLOGF_DEFAULT(level, format_str,...) VLOGF(::onnxruntime::logging::LoggingManager::DefaultLogger(), level, format_str, ##__VA_ARGS__) |
|
#define | VLOGF_USER_DEFAULT(level, format_str,...) VLOGF_USER(::onnxruntime::logging::LoggingManager::DefaultLogger(), level, format_str, ##__VA_ARGS__) |
|
#define LOGS_CATEGORY |
( |
|
logger, |
|
|
|
severity, |
|
|
|
category |
|
) |
| |
Value:if (!(logger).OutputIsEnabled(::onnxruntime::logging::Severity::k##
severity, \
\
#define CREATE_MESSAGE(logger, severity, category, datatype)
Note: The stream style logging macros (something like LOGS() << message
) are designed to be appended to. Normally, we can isolate macro code in a separate scope (e.g., do {...} while(0)
), but here we need the macro code to interact with subsequent code (i.e., the values to log).
When an unisolated conditional is involved, extra care needs to be taken to avoid unexpected parsing behavior. For example:
if (enabled) Capture().Stream()
is more direct, but
if (!enabled) { } else Capture().Stream()
ensures that the if
does not unintentionally associate with a subsequent else
.
Definition at line 69 of file macros.h.