|
reSIProcate/rutil
9694
|


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 |
Definition at line 21 of file testLogger.cxx.
| 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) {}
| 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");
}
}

Data LogThread::mDescription [private] |
Definition at line 45 of file testLogger.cxx.
Log::LocalLoggerId LogThread::mId [private] |
Reimplemented from resip::ThreadIf.
Definition at line 47 of file testLogger.cxx.
Log::ThreadSetting LogThread::mSetting [private] |
Definition at line 46 of file testLogger.cxx.
1.7.5.1