Set the hzLogger pointer for the current thread. Returns: None
| Return Type | Function name | Arguments |
|---|---|---|
| void | SetThreadLogger | (hzLogger*,) |
Declared in file: hzProcess.h
Defined in file : hzProcess.cpp
Function Logic:
Function body:
void SetThreadLogger (hzLogger* pLog)
{
// Category: Diagnostics
//
// Set the hzLogger pointer for the current thread.
//
// Arguments: 1) pLog Pointer to the hzLogger instance declared for the main process or a separately created thread.
// Returns: None
hzProcess* phz ; // Current thread
phz = GetThreadInfo() ;
if (!phz)
Fatal("SetThreadLogger. Thread %u not registered\n", pthread_self()) ;
if (!phz->GetLog())
phz->SetLog(pLog) ;
if (!s_pDfltLog)
s_pDfltLog = pLog ;
}