The PBScopeLogger Object
slgr.Set PBLoggerObject, ScopeName
PBLoggerObject is the PBLogger object that is to be used to actually log out the entrance and exit from the scope.
ScopeName is the name of the scope to whose entrance and exit is to be logged. It usually corresponds to a function name so that what is logged is the entrance and exit of individual functions but of course can be any string fitting.
slgr.Set lgr, “MyFunctionName”
The Set method is used to set the logging object and scope name.
A PBLogger object is passed in so that the PBScopeLogger doesn’t have to be redundantly configured with respect to component, context, exclusion flags, and etc. In this way changes made to a PBLogger object automatically affect logging output from all PBScopeLogger objects that use it.