#include <Logger.h>
Public Member Functions | |
| virtual | ~LogManager () |
| LogManager () | |
| void | setDebugOption (bool debug) |
| void | setErrorOption (bool errors) |
| virtual void | log_error (const std::string &name, const std::string &message) const |
| virtual void | log_debug (const std::string &name, const std::string &message) const |
Private Attributes | |
| const std::string | m_app_name |
| bool | m_log_debug |
| bool | m_log_errors |
Definition at line 24 of file Logger.h.
| virtual LogManager::~LogManager | ( | ) | [inline, virtual] |
| LogManager::LogManager | ( | ) | [inline] |
Definition at line 27 of file Logger.h.
00027 : m_app_name(""), m_log_debug(true), m_log_errors(true) {}
| virtual void LogManager::log_debug | ( | const std::string & | name, | |
| const std::string & | message | |||
| ) | const [inline, virtual] |
Definition at line 36 of file Logger.h.
References m_log_debug.
00036 { 00037 if(m_log_debug) 00038 std::cout << "debug: " << name << " :: " << message << std::endl; 00039 }
| virtual void LogManager::log_error | ( | const std::string & | name, | |
| const std::string & | message | |||
| ) | const [inline, virtual] |
Definition at line 32 of file Logger.h.
References m_log_errors.
00032 { 00033 if(m_log_errors) 00034 std::cout << " error: " << name << " :: " << message << std::endl; 00035 }
| void LogManager::setDebugOption | ( | bool | debug | ) |
Definition at line 28 of file Logger.cpp.
References m_log_debug.
00028 { 00029 m_log_debug = debug; 00030 }
| void LogManager::setErrorOption | ( | bool | errors | ) |
Definition at line 32 of file Logger.cpp.
References m_log_debug.
00032 { 00033 m_log_debug = errors; 00034 }
const std::string LogManager::m_app_name [private] |
bool LogManager::m_log_debug [private] |
Definition at line 43 of file Logger.h.
Referenced by log_debug(), setDebugOption(), and setErrorOption().
bool LogManager::m_log_errors [private] |
1.4.7