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 () |
| Settings * | saveAndResetSettings () |
| 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 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.
| enum LLError::ELevel |
| 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().


| 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().


| void LLError::configure | ( | const LLSD & | config | ) |
Definition at line 693 of file llerror.cpp.
References LLSD::beginArray(), LLError::Settings::classLevelMap, decodeLevel(), LLSD::endArray(), LLError::Settings::fileLevelMap, LLError::Settings::functionLevelMap, indra::util::named_query::get(), setDefaultLevel(), setLevels(), setPrintLocation(), LLError::Settings::tagLevelMap, and LLError::Settings::uniqueLogMessages.

| void LLError::crashAndLoop | ( | const std::string & | message | ) |
Definition at line 1153 of file llerror.cpp.
References NULL.
Referenced by commonInit(), and errorCallback().

| void LLError::initForApplication | ( | const std::string & | dir | ) |
Definition at line 591 of file llerror.cpp.
References commonInit().
Referenced by LLAppViewer::initLogging(), and main().


| 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().

| std::string LLError::logFileName | ( | ) |
Definition at line 804 of file llerror.cpp.
References LLError::Settings::fileRecorderFileName, and LLError::Settings::get().
Referenced by LLAppViewer::writeSystemInfo().


| 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().


| 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().


| std::ostream& LLError::operator<< | ( | std::ostream & | s, | |
| const End & | ||||
| ) | [inline] |
| std::string LLError::removePrefix | ( | std::string & | s, | |
| const std::string & | p | |||
| ) |
Definition at line 1106 of file llerror.cpp.
Referenced by abbreviateFile().

| 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().


| void LLError::replaceChar | ( | std::string & | s, | |
| char | old, | |||
| char | replacement | |||
| ) |
Definition at line 1117 of file llerror.cpp.
References i.
Referenced by abbreviateFile().

| void LLError::restoreSettings | ( | Settings * | s | ) |
Definition at line 1101 of file llerror.cpp.
References LLError::Settings::restore().
Referenced by tut::ErrorTestData::~ErrorTestData().


| Settings * LLError::saveAndResetSettings | ( | ) |
Definition at line 1096 of file llerror.cpp.
References LLError::Settings::saveAndReset().
Referenced by tut::ErrorTestData::ErrorTestData().


| 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().

| 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().


| 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().


| 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().

| 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().

| void LLError::setPrintLocation | ( | bool | ) |
Definition at line 596 of file llerror.cpp.
References indra::util::named_query::get(), and LLError::Settings::printLocation.
Referenced by configure(), and LLAppViewer::init().


| 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.

| 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().


| int LLError::shouldLogCallCount | ( | ) |
Definition at line 1147 of file llerror.cpp.
References indra::util::named_query::get(), and LLError::Settings::shouldLogCallCounter.

| std::string LLError::utcTime | ( | ) |
Definition at line 1166 of file llerror.cpp.
References NULL.
Referenced by commonInit().

1.5.5