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 | 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 &) |
void | setDefaultLevel (LLError::ELevel) |
void | setFunctionLevel (const std::string &function_name, LLError::ELevel) |
void | setClassLevel (const std::string &class_name, LLError::ELevel) |
void | setFileLevel (const std::string &file_name, LLError::ELevel) |
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 |
void LLError::initForServer | ( | const std::string & | identity | ) |
Definition at line 520 of file llerror.cpp.
References addRecorder(), LLSD::asString(), commonInit(), LLApp::getOption(), and LLApp::instance().
void LLError::initForApplication | ( | const std::string & | dir | ) |
void LLError::setPrintLocation | ( | bool | ) |
Definition at line 538 of file llerror.cpp.
References LLError::Settings::get(), and s.
Referenced by configure(), and main().
void LLError::setFatalFunction | ( | FatalFunction | f | ) |
Definition at line 544 of file llerror.cpp.
References LLError::Settings::get(), and s.
Referenced by commonInit(), tut::ErrorTestData::ErrorTestData(), and main().
void LLError::setTimeFunction | ( | TimeFunction | f | ) |
Definition at line 550 of file llerror.cpp.
References LLError::Settings::get(), and s.
Referenced by commonInit().
Definition at line 556 of file llerror.cpp.
References g, LLError::Settings::get(), and s.
Referenced by commonInit(), configure(), default_unix_signal_handler(), tut::ErrorTestData::ErrorTestData(), and main().
Definition at line 627 of file llerror.cpp.
References a, LLSD::beginArray(), decodeLevel(), end, LLSD::endArray(), g, LLError::Settings::get(), s, setDefaultLevel(), setLevels(), and setPrintLocation().
void LLError::addRecorder | ( | Recorder * | recorder | ) |
Definition at line 667 of file llerror.cpp.
References LLError::Settings::get(), NULL, and s.
Referenced by commonInit(), tut::ErrorTestData::ErrorTestData(), initForServer(), logToFile(), and logToFixedBuffer().
void LLError::removeRecorder | ( | Recorder * | recorder | ) |
Definition at line 677 of file llerror.cpp.
References LLError::Settings::get(), NULL, and s.
Referenced by logToFile(), logToFixedBuffer(), and tut::ErrorTestData::~ErrorTestData().
void LLError::logToFile | ( | const std::string & | file_name | ) |
Definition at line 692 of file llerror.cpp.
References addRecorder(), f, LLError::Settings::get(), NULL, removeRecorder(), and s.
Referenced by init_logging(), and viewer_crash_callback().
void LLError::logToFixedBuffer | ( | LLFixedBuffer * | fixedBuffer | ) |
Definition at line 718 of file llerror.cpp.
References addRecorder(), LLError::Settings::get(), NULL, removeRecorder(), and s.
Referenced by cleanup_app(), and idle_startup().
std::string LLError::logFileName | ( | ) |
Definition at line 735 of file llerror.cpp.
References LLError::Settings::get(), and s.
Referenced by write_system_info().
Settings * LLError::saveAndResetSettings | ( | ) |
Definition at line 998 of file llerror.cpp.
References LLError::Settings::saveAndReset().
Referenced by tut::ErrorTestData::ErrorTestData().
void LLError::restoreSettings | ( | Settings * | s | ) |
Definition at line 1003 of file llerror.cpp.
References LLError::Settings::restore(), and s.
Referenced by tut::ErrorTestData::~ErrorTestData().
std::string LLError::removePrefix | ( | std::string & | s, | |
const std::string & | p | |||
) |
void LLError::replaceChar | ( | std::string & | s, | |
char | old, | |||
char | replacement | |||
) |
std::string LLError::abbreviateFile | ( | const std::string & | filePath | ) |
Definition at line 1032 of file llerror.cpp.
References f, removePrefix(), and replaceChar().
Referenced by LLError::Log::flush(), locationString(), and LLError::Log::shouldLog().
int LLError::shouldLogCallCount | ( | ) |
void LLError::crashAndLoop | ( | const std::string & | message | ) |
Definition at line 1055 of file llerror.cpp.
References NULL.
Referenced by commonInit(), and errorCallback().
std::string LLError::utcTime | ( | ) |
std::ostream& LLError::operator<< | ( | std::ostream & | s, | |
const End & | ||||
) | [inline] |
void LLError::setDefaultLevel | ( | LLError::ELevel | ) |
void LLError::setFunctionLevel | ( | const std::string & | function_name, | |
LLError::ELevel | ||||
) |
void LLError::setClassLevel | ( | const std::string & | class_name, | |
LLError::ELevel | ||||
) |
void LLError::setFileLevel | ( | const std::string & | file_name, | |
LLError::ELevel | ||||
) |