Write message supplied as a chain to the defualt log-channel of the current thread. If there is no defualt log-channel open, the message is written to stdout.

Return TypeFunction nameArguments
hzEcodethreadLog(hzChain&,)

Declared in file: hzProcess.h
Defined in file : hzLogger.cpp

Function Logic:

0:START 1:plog 2:unknown 3:items items 4:Return E_NOINIT 5:Return plog->Log(msg)

Function body:

hzEcode threadLog (hzChain& msg)
{
   //  Category: Diagnostics
   //  
   //  Write message supplied as a chain to the defualt log-channel of the current thread. If there is no defualt log-channel open, the message is written to stdout.
   //  
   //  Arguments: 1) msg  Output message as chain
   //  
   //  Returns: E_SENDFAIL If logging is to the logserver and could not be sent
   //     E_RECVFAIL If logging is to the logserver and acknowledgemnt was not recieved
   //     E_PROTOCOL If logging is to the logserver and said logserver did not observe protocol
   //     E_OK  If the log action was completed
   //  _hzfunc("threadLog(chain)") ;
   hzLogger*   plog ;      //  The calling thread's logfile
   plog = GetThreadLogger() ;  //  phz ? phz->GetLog() : 0 ;
   if (!plog)
   {
        std::cout << msg ;
        fflush(stdout) ;
       return E_NOINIT ;
   }
   return plog->Log(msg) ;
}