Rivet API documentation

Rivet 4.1.3
Logging macros

Macros

#define MSG_LVL(lvl, x)
 Neat CPU-conserving logging macros. Use by preference!
#define MSG_TRACE(x)
 Lowest-level, most verbose messaging, using MSG_LVL.
#define MSG_DEBUG(x)
 Debug messaging, not enabled by default, using MSG_LVL.
#define MSG_INFO(x)
 Key-information messging, enabled by default, using MSG_LVL.
#define MSG_WARNING(x)
 Warning messages for non-fatal bad things, using MSG_LVL.
#define MSG_ERROR(x)
 Highest level messaging for serious problems, using MSG_LVL.

Detailed Description

Macro Definition Documentation

◆ MSG_DEBUG

◆ MSG_ERROR

#define MSG_ERROR ( x)

◆ MSG_INFO

#define MSG_INFO ( x)
Value:
MSG_LVL(Log::INFO, x)

Key-information messging, enabled by default, using MSG_LVL.

Note
Silence is golden: don't emit default-visible messages unless you need the user to see them

◆ MSG_LVL

#define MSG_LVL ( lvl,
x )
Value:
do { \
if (getLog().isActive(lvl)) { \
getLog() << lvl << x << '\n'; \
} \
} while (0)

Neat CPU-conserving logging macros. Use by preference!

Note
Only usable in classes where a getLog() method is provided

◆ MSG_TRACE

◆ MSG_WARNING