Logging a Message

C and C++ API Overview, Getting Started Logging, Samples

Log messages can be created with standalone functions in the C/C++ API or with the C++ classes. The chief deciding factor is not whether to use C or C++ but in what the logging requirements are. For instance, it is often more convenient to use the standalone functions than it is to use the CPBLogger class which was created for finer control over segregating log messages along component, context, and filtering boundaries in more complex logging scenarios. In any case, they all have their advantages and are worth a look.

PBLog Standalone function(s).

CPBLogger C++ class used for extra logging control in more complex situations.

CPBScopeLogger C++ class used to log the entry/exit of scopes by using the constructor/destructor.