|
|
Rivet 4.0.0
|
|
#define | MSG_LVL(lvl, x) |
| Neat CPU-conserving logging macros. Use by preference!
|
|
#define | MSG_TRACE(x) MSG_LVL(Log::TRACE, x) |
| Lowest-level, most verbose messaging, using MSG_LVL.
|
|
#define | MSG_DEBUG(x) MSG_LVL(Log::DEBUG, x) |
| Debug messaging, not enabled by default, using MSG_LVL.
|
|
#define | MSG_INFO(x) MSG_LVL(Log::INFO, x) |
| Key-information messging, enabled by default, using MSG_LVL.
|
|
#define | MSG_WARNING(x) MSG_LVL(Log::WARNING, x) |
| Warning messages for non-fatal bad things, using MSG_LVL.
|
|
#define | MSG_ERROR(x) MSG_LVL(Log::ERROR, x) |
| Highest level messaging for serious problems, using MSG_LVL.
|
|
◆ MSG_INFO
#define MSG_INFO |
( |
|
x | ) |
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
|