Logging a Message

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.