LLError Namespace Reference


Classes

class  Settings
class  Log
class  CallSite
class  End
class  NoClassInfo
class  Recorder

Typedefs

typedef void(* FatalFunction )(const std::string &message)
typedef std::string(* TimeFunction )()

Enumerations

enum  ELevel {
  LEVEL_ALL = 0, LEVEL_DEBUG = 0, LEVEL_INFO = 1, LEVEL_WARN = 2,
  LEVEL_ERROR = 3, LEVEL_NONE = 4
}

Functions

void initForServer (const std::string &identity)
void initForApplication (const std::string &dir)
void setPrintLocation (bool print)
void setFatalFunction (FatalFunction f)
void setTimeFunction (TimeFunction f)
void setDefaultLevel (ELevel level)
void setFunctionLevel (const std::string &function_name, ELevel level)
void setClassLevel (const std::string &class_name, ELevel level)
void setFileLevel (const std::string &file_name, ELevel level)
void setTagLevel (const std::string &tag_name, ELevel level)
void configure (const LLSD &config)
void addRecorder (Recorder *recorder)
void removeRecorder (Recorder *recorder)
void logToFile (const std::string &file_name)
void logToFixedBuffer (LLFixedBuffer *fixedBuffer)
std::string logFileName ()
SettingssaveAndResetSettings ()
void restoreSettings (Settings *s)
std::string removePrefix (std::string &s, const std::string &p)
void replaceChar (std::string &s, char old, char replacement)
std::string abbreviateFile (const std::string &filePath)
int shouldLogCallCount ()
void crashAndLoop (const std::string &message)
std::string utcTime ()
std::ostream & operator<< (std::ostream &s, const End &)


Typedef Documentation

typedef void(* LLError::FatalFunction)(const std::string &message)

Definition at line 85 of file llerrorcontrol.h.

typedef std::string(* LLError::TimeFunction)()

Definition at line 95 of file llerrorcontrol.h.


Enumeration Type Documentation

Enumerator:
LEVEL_ALL 
LEVEL_DEBUG 
LEVEL_INFO 
LEVEL_WARN 
LEVEL_ERROR 
LEVEL_NONE 

Definition at line 110 of file llerror.h.


Function Documentation

std::string LLError::abbreviateFile ( const std::string &  filePath  ) 

Definition at line 1130 of file llerror.cpp.

References removePrefix(), and replaceChar().

Referenced by LLError::Log::flush(), locationString(), and LLError::Log::shouldLog().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLError::addRecorder ( Recorder *  recorder  ) 

Definition at line 736 of file llerror.cpp.

References indra::util::named_query::get(), NULL, and LLError::Settings::recorders.

Referenced by commonInit(), tut::ErrorTestData::ErrorTestData(), initForServer(), logToFile(), and logToFixedBuffer().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLError::configure ( const LLSD config  ) 

void LLError::crashAndLoop ( const std::string &  message  ) 

Definition at line 1153 of file llerror.cpp.

References NULL.

Referenced by commonInit(), and errorCallback().

Here is the caller graph for this function:

void LLError::initForApplication ( const std::string &  dir  ) 

Definition at line 591 of file llerror.cpp.

References commonInit().

Referenced by LLAppViewer::initLogging(), and main().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLError::initForServer ( const std::string &  identity  ) 

Definition at line 578 of file llerror.cpp.

References addRecorder(), LLSD::asString(), commonInit(), LLApp::getOption(), and LLApp::instance().

Here is the call graph for this function:

std::string LLError::logFileName (  ) 

Definition at line 804 of file llerror.cpp.

References LLError::Settings::fileRecorderFileName, and LLError::Settings::get().

Referenced by LLAppViewer::writeSystemInfo().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLError::logToFile ( const std::string &  file_name  ) 

Definition at line 761 of file llerror.cpp.

References addRecorder(), LLError::Settings::fileRecorder, LLError::Settings::fileRecorderFileName, LLError::Settings::get(), NULL, and removeRecorder().

Referenced by handleLogFileChanged(), LLAppViewer::handleViewerCrash(), and LLAppViewer::initLogging().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLError::logToFixedBuffer ( LLFixedBuffer fixedBuffer  ) 

Definition at line 787 of file llerror.cpp.

References addRecorder(), LLError::Settings::fixedBufferRecorder, LLError::Settings::get(), NULL, and removeRecorder().

Referenced by LLAppViewer::cleanup(), and idle_startup().

Here is the call graph for this function:

Here is the caller graph for this function:

std::ostream& LLError::operator<< ( std::ostream &  s,
const End &   
) [inline]

Definition at line 175 of file llerror.h.

std::string LLError::removePrefix ( std::string &  s,
const std::string &  p 
)

Definition at line 1106 of file llerror.cpp.

Referenced by abbreviateFile().

Here is the caller graph for this function:

void LLError::removeRecorder ( Recorder *  recorder  ) 

Definition at line 746 of file llerror.cpp.

References indra::util::named_query::get(), NULL, and LLError::Settings::recorders.

Referenced by logToFile(), logToFixedBuffer(), and tut::ErrorTestData::~ErrorTestData().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLError::replaceChar ( std::string &  s,
char  old,
char  replacement 
)

Definition at line 1117 of file llerror.cpp.

References i.

Referenced by abbreviateFile().

Here is the caller graph for this function:

void LLError::restoreSettings ( Settings *  s  ) 

Definition at line 1101 of file llerror.cpp.

References LLError::Settings::restore().

Referenced by tut::ErrorTestData::~ErrorTestData().

Here is the call graph for this function:

Here is the caller graph for this function:

Settings * LLError::saveAndResetSettings (  ) 

Definition at line 1096 of file llerror.cpp.

References LLError::Settings::saveAndReset().

Referenced by tut::ErrorTestData::ErrorTestData().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLError::setClassLevel ( const std::string &  class_name,
ELevel  level 
)

Definition at line 630 of file llerror.cpp.

References LLError::Settings::classLevelMap, and indra::util::named_query::get().

Here is the call graph for this function:

void LLError::setDefaultLevel ( ELevel  level  ) 

Definition at line 614 of file llerror.cpp.

References LLError::Settings::defaultLevel, and indra::util::named_query::get().

Referenced by commonInit(), configure(), default_unix_signal_handler(), tut::ErrorTestData::ErrorTestData(), and main().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLError::setFatalFunction ( FatalFunction  f  ) 

Definition at line 602 of file llerror.cpp.

References LLError::Settings::crashFunction, and indra::util::named_query::get().

Referenced by commonInit(), tut::ErrorTestData::ErrorTestData(), LLAppViewer::initLogging(), and main().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLError::setFileLevel ( const std::string &  file_name,
ELevel  level 
)

Definition at line 638 of file llerror.cpp.

References LLError::Settings::fileLevelMap, and indra::util::named_query::get().

Here is the call graph for this function:

void LLError::setFunctionLevel ( const std::string &  function_name,
ELevel  level 
)

Definition at line 622 of file llerror.cpp.

References LLError::Settings::functionLevelMap, and indra::util::named_query::get().

Here is the call graph for this function:

void LLError::setPrintLocation ( bool  print  ) 

Definition at line 596 of file llerror.cpp.

References indra::util::named_query::get(), and LLError::Settings::printLocation.

Referenced by configure(), and LLAppViewer::init().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLError::setTagLevel ( const std::string &  tag_name,
ELevel  level 
)

Definition at line 646 of file llerror.cpp.

References indra::util::named_query::get(), and LLError::Settings::tagLevelMap.

Here is the call graph for this function:

void LLError::setTimeFunction ( TimeFunction  f  ) 

Definition at line 608 of file llerror.cpp.

References indra::util::named_query::get(), and LLError::Settings::timeFunction.

Referenced by commonInit().

Here is the call graph for this function:

Here is the caller graph for this function:

int LLError::shouldLogCallCount (  ) 

Definition at line 1147 of file llerror.cpp.

References indra::util::named_query::get(), and LLError::Settings::shouldLogCallCounter.

Here is the call graph for this function:

std::string LLError::utcTime (  ) 

Definition at line 1166 of file llerror.cpp.

References NULL.

Referenced by commonInit().

Here is the caller graph for this function:


Generated on Fri May 16 09:42:38 2008 for SecondLife by  doxygen 1.5.5