C and C++ API Overview, What’s a Log Message, Samples
CPBScopeLogger will output a user supplied string describing a scope when it 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.
CPBScopeLogger Constructs the CPBScopeLogger object and logs the passed in scope string.
~CPBScopeLogger Destructs the CPBScopeLogger object and logs the scope string originally passed in on the constructor.