COM Interface Overview, What’s a Log Message, Samples
The PBScopeLogger object is a direct wrapper around the C++ API’s CPBScopeLogger class. It outputs a user supplied string describing a scope when the object is constructed and destroyed. This is useful when logging the entering and exiting of code in functions (or any other scopes) with numerous exit points or ones that throw exceptions. It can also be used to log the opening and closing of forms, loading and unloading of dlls, or any other similar actions. It has two methods, which are listed below.
NoReturnCodesPropertyEnables or disables diagnostic return codes across COM calls.
SetMethodSets the scope string and PBLogger object with which to log the scope’s entry and exit.