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

void Impala::Logger::Init ( int  logLevel,
String  logFile,
bool  debug 
) [inline, private]

Definition at line 312 of file Logger.h.

References LOG_DEBUG, LogString(), mErrorLog, mLineStarted, mLog, mLogFile, mLogToFile, mPLog, mShowLevel, and mTimer.

Referenced by Configure().

00313     {
00314         mLineStarted = false;
00315         mTimer = new Timer(1);
00316 //        mActionTimer = new Timer(1);
00317         mShowLevel = logLevel;
00318         mLogFile = logFile;
00319         mLogToFile = !mLogFile.empty();
00320         if (debug)
00321             mShowLevel = LOG_DEBUG;
00322 
00323         std::ostringstream s;
00324         s << "Logger started @ level " << mShowLevel;
00325 
00326         if (mLogToFile)
00327         {
00328             mLog = new std::fstream(mLogFile.c_str(),
00329                                     std::ios::out | std::ios::app);
00330         }
00331         else
00332         {
00333             mLog = 0;
00334         }
00335         mPLog = 0;
00336         mErrorLog = new std::fstream("errors.log", std::ios::out | std::ios::app);
00337         LogString(s.str());
00338     }

Here is the call graph for this function:


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