Skip to content
Diamond Sierra

Message Types

There are 10 message types and they are described in the table below.

Updated · By Diamond Sierra

There are 10 message types and they are described in the table below.

Width1Width3Width1728 Width3Width1440 Width3Width1800 Width3Width6390 Message typeAbbreviation#define constantMeaningWidth1Width3Width1728 Width3Width1440 Width3Width1800 Width3Width6390
Width1Width3Width1728 Width3Width1440 Width3Width1800 Width3Width6390 VerboseVERBOSE_PB_VERBOSE*Basic logging of clutter. Dumping function args, vars, etc.Width1Width3Width1728 Width3Width1440 Width3Width1800 Width3Width6390
InformationalINFO_PB_INFO*Basic logging of events.Width1Width3Width1728 Width3Width1440 Width3Width1800 Width3Width6390
StatusSTATUS_PB_STATUSBasic logging of significant events.Width1Width3Width1728 Width3Width1440 Width3Width1800 Width3Width6390
WarningWARNING_PB_WARNINGUser or system errors(?), bad function return codes(?), etc.Width1Width3Width1728 Width3Width1440 Width3Width1800 Width3Width6390
ErrorERROR_PB_ERRORUser or system errors, bad function return codes, etc.Width1Width3Width1728 Width3Width1440 Width3Width1800 Width3Width6390
BugBUG_PB_BUGActual bugs. Invalid parms, out of bound array indices, etc.Width1Width3Width1728 Width3Width1440 Width3Width1800 Width3Width6390
Regression testREGTEST_PB_REGTESTUsed specifically and solely for before/after regression testing.Width1Width3Width1728 Width3Width1440 Width3Width1800 Width3Width6390
CommentCOMMENT_PB_COMMENTUsed internally and by PBLog.exe to insert user comments.Width1Width3Width1728 Width3Width1440 Width3Width1800 Width3Width6390
InternalINTERNAL_PB_INTERNALInternal message from Paul Bunyan. Out of memory, sem failed, etc.Width1Width3Width1728 Width3Width1440 Width3Width1800 Width3Width6390
User definedUSER_PB_USER**Used to create custom user messages.Width1Width3Width1728 Width3Width1440 Width3Width1800 Width3Width6390
Width1Width3Width1728 Width3Width1440 Width3Width1800 Width3Width6390 InvalidINVALID_PB_INVALIDMessages with invalid message types are converted to this type.Width1Width3Width1728 Width3Width1440 Width3Width1800 Width3Width6390

*Messages of type VERBOSE and INFO are by default prefiltered out by the C++ classes in builds where PB_DEBUG_LEVEL is set to 1. This is governed by the PB_DEFAULT_EXCLUDE macro and is overridable.

**User messages have the lower 16 bits zero and the upper 16 bits non-zero. User messages are displayed in the viewer as ‘Unnn’, passed to message handlers in whole, and defined in the following manner:

#define _MY_USR_MSG1 0x00010000
#define _MY_USR_MSG2 PB_USER(0x2)