log_lib Class Reference
Public Member Functions | |
log_lib () | |
virtual | ~log_lib () |
bool | log (Logger::Level requested_level) const |
void | log (Logger::Level requested_level, const std::string &fmtMsg) |
Public Attributes | |
std::string | _console_prefix = "" |
bool | _log_to_console = false |
bool | _log_to_file = false |
Logger::Level | _log_level = Logger::Level::Info |
std::string | _str_requested_level = "[INFO]" |
Logger::Level | _last_requested_level = Logger::Level::Info |
std::ofstream | _file |
std::mutex | _mutex |
Constructor & Destructor Documentation
◆ log_lib()
|
inline |
◆ ~log_lib()
|
inlinevirtual |
Member Function Documentation
◆ log() [1/2]
|
inline |
◆ log() [2/2]
|
inline |
Member Data Documentation
◆ _console_prefix
std::string log_lib::_console_prefix = "" |
◆ _file
std::ofstream log_lib::_file |
◆ _last_requested_level
Logger::Level log_lib::_last_requested_level = Logger::Level::Info |
◆ _log_level
Logger::Level log_lib::_log_level = Logger::Level::Info |
◆ _log_to_console
bool log_lib::_log_to_console = false |
◆ _log_to_file
bool log_lib::_log_to_file = false |
◆ _mutex
std::mutex log_lib::_mutex |
◆ _str_requested_level
std::string log_lib::_str_requested_level = "[INFO]" |