reSIProcate/rutil  9694
Public Member Functions | Private Attributes
LogThread Class Reference
Inheritance diagram for LogThread:
Inheritance graph
[legend]
Collaboration diagram for LogThread:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 LogThread (const Data &description, const Log::ThreadSetting &s, Log::LocalLoggerId id=0)
void thread ()

Private Attributes

Data mDescription
Log::ThreadSetting mSetting
Log::LocalLoggerId mId

Detailed Description

Definition at line 21 of file testLogger.cxx.


Constructor & Destructor Documentation

LogThread::LogThread ( const Data description,
const Log::ThreadSetting s,
Log::LocalLoggerId  id = 0 
) [inline]

Definition at line 24 of file testLogger.cxx.

         : mDescription(description),
           mSetting(s),
           mId(id)
      {}

Member Function Documentation

void LogThread::thread ( ) [inline, virtual]

Implements resip::ThreadIf.

Definition at line 31 of file testLogger.cxx.

References DebugLog, InfoLog, resip::Log::setThreadLocalLogger(), resip::Log::setThreadSetting(), and StackLog.

      {
         Log::setThreadSetting(mSetting);
         int reval = Log::setThreadLocalLogger(mId);
         (void)reval;   // make gcc4 happy
//         InfoLog(<< "setThreadLocalLogger(" << mId << ") returned " << reval);
         while(!waitForShutdown(1000))
         {
            StackLog(<< mDescription << "  STACK");
            DebugLog(<< mDescription << "  DEBUG");
            InfoLog(<< mDescription << "  INFO");
         }
      }

Here is the call graph for this function:


Member Data Documentation

Definition at line 45 of file testLogger.cxx.

Reimplemented from resip::ThreadIf.

Definition at line 47 of file testLogger.cxx.

Definition at line 46 of file testLogger.cxx.


The documentation for this class was generated from the following file: