Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

virtual void Impala::Logger::LogString ( String  log,
bool  isPartial = false,
int  level = LOG_DEBUG 
) [inline, protected, virtual]

Implements Impala::LogListener.

Definition at line 190 of file Logger.h.

References EndLine(), GetHeader(), LOG_ERROR, mErrorLog, mLineStarted, mLog, mLogToFile, mPLog, mShowLevel, mTimer, Impala::Timer::SplitTime(), and Impala::Timer::SplitTimeStr().

Referenced by DoClosePartLog(), DoOpenPartLog(), EndAction(), Init(), operator<<(), StartAction(), and ~Logger().

00191     {
00192         if (level < mShowLevel)
00193             return;
00194 
00195         if (!mLineStarted)
00196         {
00197             std::cout << mTimer->SplitTimeStr() << " " << GetHeader(level)
00198                       << ": ";
00199             if (mLogToFile)
00200                 *mLog << mTimer->SplitTime() <<  " " << GetHeader(level) << ": ";
00201             if (mPLog != 0)
00202                 *mPLog << mTimer->SplitTime() <<  " " << GetHeader(level) << ": ";
00203             if (level == LOG_ERROR)
00204                 *mErrorLog << mTimer->SplitTime() <<  " " << GetHeader(level)
00205                            << ": ";
00206         }
00207 
00208         std::cout << log;
00209 
00210         if (mLogToFile)
00211             *mLog << log;
00212         if (mPLog != 0)
00213             *mPLog << log;
00214         if (level == LOG_ERROR)
00215             *mErrorLog << log;
00216 
00217         mLineStarted = true;
00218         if (!isPartial)
00219             EndLine(level);
00220     }

Here is the call graph for this function:


Generated on Fri Mar 19 10:35:56 2010 for ImpalaSrc by  doxygen 1.5.1