|
PARTONS/ElementaryUtils
|
Basic utility softwares (Logger, threads, etc)
|
![]() |
<singleton> Handles logs. More...
Public Member Functions | |
| virtual | ~LoggerManager () |
| Default destructor. More... | |
| void | init () |
| void | close () |
| void | defineLevel (LoggerLevel loggerLevel) |
| void | run () |
| Main function executed by the thread. More... | |
| void | debug (const std::string &className, const std::string &functionName, const std::string &message) |
| void | info (const std::string &className, const std::string &functionName, const std::string &message) |
| void | warn (const std::string &className, const std::string &functionName, const std::string &message) |
| void | error (const std::string &className, const std::string &functionName, const std::string &message) |
| void | error (const CustomException &customException) |
| void | addMessageToBuffer (LoggerMessage loggerMessage) |
| std::string | toString () |
| void | flushBuffer () |
Public Member Functions inherited from ElemUtils::Thread | |
| Thread () | |
| Default constructor. More... | |
| virtual | ~Thread () |
| Default destructor. More... | |
| virtual Thread * | clone () const |
| void | launch () |
| void | wait () |
Static Public Member Functions | |
| static LoggerManager * | getInstance () |
Private Member Functions | |
| LoggerManager () | |
| Private default constructor for a unique instance. More... | |
| void | parseConfigurationFile (const std::string &filePath) |
| void | update () |
| bool | isLoggable (LoggerMessage loggerMessage) |
| void | writeConsole () |
| void | writeFile () |
Private Attributes | |
| sf::Mutex | m_mutex |
| std::ofstream | m_fileOutputStream |
| std::string | m_outputFilePath |
| LoggerLevel | m_defaultLevel |
| LoggerPrintMode | m_printMode |
| std::map< std::string, LoggerClassLevel * > | m_customClassLevels |
| std::map< std::string, LoggerClassLevel * >::iterator | m_it |
| std::string | m_buffer |
| bool | m_active |
Static Private Attributes | |
| static LoggerManager * | m_pInstance = 0 |
Additional Inherited Members | |
Protected Member Functions inherited from ElemUtils::Thread | |
| Thread (const Thread &other) | |
<singleton> Handles logs.
|
virtual |
Default destructor.
|
private |
Private default constructor for a unique instance.
| void ElemUtils::LoggerManager::addMessageToBuffer | ( | LoggerMessage | loggerMessage | ) |
| void ElemUtils::LoggerManager::close | ( | ) |
| void ElemUtils::LoggerManager::debug | ( | const std::string & | className, |
| const std::string & | functionName, | ||
| const std::string & | message | ||
| ) |
| void ElemUtils::LoggerManager::defineLevel | ( | LoggerLevel | loggerLevel | ) |
| void ElemUtils::LoggerManager::error | ( | const CustomException & | customException | ) |
| void ElemUtils::LoggerManager::error | ( | const std::string & | className, |
| const std::string & | functionName, | ||
| const std::string & | message | ||
| ) |
| void ElemUtils::LoggerManager::flushBuffer | ( | ) |
|
static |
| void ElemUtils::LoggerManager::info | ( | const std::string & | className, |
| const std::string & | functionName, | ||
| const std::string & | message | ||
| ) |
| void ElemUtils::LoggerManager::init | ( | ) |
|
private |
|
private |
|
virtual |
Main function executed by the thread.
Reimplemented from ElemUtils::Thread.
| std::string ElemUtils::LoggerManager::toString | ( | ) |
|
private |
| void ElemUtils::LoggerManager::warn | ( | const std::string & | className, |
| const std::string & | functionName, | ||
| const std::string & | message | ||
| ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
staticprivate |
|
private |