CPBLogger::CPBLogger

Class CPBLogger

CPBLogger(PB_COMPONENT* pcp = NULL, PB_CONTEXT* pcx = NULL, BOOL blEnable = TRUE, ULONG ulExclude = PB_DEFAULT_EXCLUDE)

Parameters

pcpPointer to PB_COMPONENT structure to be used explicitly on calls to the Log member function. Overrides use of default component for all logging by this object.

pcxPointer to PB_CONTEXT structure to be used explicitly on calls to the Log member function. Overrides use of default context for all logging by this object.

blEnableFlag to enable or disable all logging by this object.

ulExcludeBit flags to disable logging of specific message types when using this object. E.g. ulExclude = _PB_VERBOSE | _PB_INFO.

Note that the ulExclude parameter defaults to PB_DEFAULT_EXCLUDE which changes value in builds where PB_DEBUG_LEVEL is set to 1.