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 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 &)
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 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

enum LLError::ELevel

Enumerator:
LEVEL_ALL 
LEVEL_DEBUG 
LEVEL_INFO 
LEVEL_WARN 
LEVEL_ERROR 
LEVEL_NONE 

Definition at line 110 of file llerror.h.


Function Documentation

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  ) 

Definition at line 533 of file llerror.cpp.

References commonInit().

Referenced by main().

void LLError::setPrintLocation ( bool  print  ) 

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

void LLError::setDefaultLevel ( ELevel  level  ) 

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

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

Definition at line 564 of file llerror.cpp.

References g, LLError::Settings::get(), and s.

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

Definition at line 572 of file llerror.cpp.

References g, LLError::Settings::get(), and s.

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

Definition at line 580 of file llerror.cpp.

References g, LLError::Settings::get(), and s.

void LLError::configure ( const LLSD config  ) 

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 
)

Definition at line 1008 of file llerror.cpp.

Referenced by abbreviateFile().

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

Definition at line 1019 of file llerror.cpp.

References i.

Referenced by abbreviateFile().

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

Definition at line 1049 of file llerror.cpp.

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

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

Definition at line 1068 of file llerror.cpp.

References NULL.

Referenced by commonInit().

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

Definition at line 172 of file llerror.h.

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   
)


Generated on Thu Jul 1 06:12:05 2010 for Second Life Viewer by  doxygen 1.4.7